jack24
Electrical
- Jun 11, 2007
- 1
Hello all,
I have a small but extremely frustrating problem. When I try to use the Plot function in Matlab, I get an error. This never happened before to me. For example, if I write the following code:
x=[-5:1:5]
y =x;
plot(x,y)
And then save and run it, I get an error that states:
??? Attempt to execute SCRIPT plot as a function
Error in ==> plot2 at 5
plot(x,y)
Can anyone tell me what this means?? Or how I can overcome this little problem? Thank you very much all.
I have a small but extremely frustrating problem. When I try to use the Plot function in Matlab, I get an error. This never happened before to me. For example, if I write the following code:
x=[-5:1:5]
y =x;
plot(x,y)
And then save and run it, I get an error that states:
??? Attempt to execute SCRIPT plot as a function
Error in ==> plot2 at 5
plot(x,y)
Can anyone tell me what this means?? Or how I can overcome this little problem? Thank you very much all.