I have a working MATLAB code, which works fine on another machine, but when I run it on my own computer it detects the foloowing syntax error:
Expression or statement is incorrect--possibly unbalanced (, {, or [.
This is my code:
[~,x] = min(A);
What version of MATLAB are you using?
The
~syntax for discarding unwanted return values was only introduced in R2009b.EDIT: Had 2008a.