Skip to content

Instantly share code, notes, and snippets.

@chris-taylor
Created March 9, 2012 10:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chris-taylor/2005979 to your computer and use it in GitHub Desktop.
Save chris-taylor/2005979 to your computer and use it in GitHub Desktop.
Test if a Matlab object is a Dual
function b = isdual(a)
%ISDUAL Return true if a is of class Dual, else return false
b = strcmp(class(a),'Dual');
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment