why its giving me this error ????

1 view (last 30 days)
Shah
Shah on 25 Nov 2013
Commented: Walter Roberson on 26 Nov 2013
Anyone know why its giving me this error
>> [x,y] = meshgrid(-2:0.2:+2);
Error: File: meshgrid.m Line: 1 Column: 27 Unexpected MATLAB expression.

Answers (1)

Walter Roberson
Walter Roberson on 25 Nov 2013
Check
which -all meshgrid
and see if you have accidentally introduced your own meshgrid.m
Also is it possible that you are running an older MATLAB but have the meshgrid for a more modern MATLAB on your MATLAB path?
  2 Comments
Shah
Shah on 25 Nov 2013
Yeah the file saved in file.m format. But my all files are like that.
Walter Roberson
Walter Roberson on 26 Nov 2013
Sorry, I do not understand your answer.
What does
which -alll meshgrid
show for you?
Which MATLAB version are you using?

Sign in to comment.

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!