Below is my script:
>> clf>> hold on>> axis([-1 1 -1 1])>> x=-1:0.0001:1;>> y=cos(1/x)>> plot(x,y)
May I know why I keep getting this error:-
(Error using / Matrix dimensions must agree...)?
errorplot
>> clf>> hold on>> axis([-1 1 -1 1])>> x=-1:0.0001:1;>> y=cos(1/x)>> plot(x,y)
(Error using / Matrix dimensions must agree...)?
Best Answer