Created
March 9, 2012 10:25
-
-
Save chris-taylor/2005979 to your computer and use it in GitHub Desktop.
Test if a Matlab object is a Dual
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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