Skip to content

Instantly share code, notes, and snippets.

@slahiruk
Last active December 14, 2017 15:53
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 slahiruk/9c9e8242322739a437c22ec319174894 to your computer and use it in GitHub Desktop.
Save slahiruk/9c9e8242322739a437c22ec319174894 to your computer and use it in GitHub Desktop.
Matlab stuff
% conditional operator in Matlab
cond = @(x,y)x<=y;
dim=@(x,y,cd)(x*cd(x,y))+(y*~cd(x,y));
@slahiruk
Copy link
Author

Conditional operator for matlab, simple stuff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment