Jun 12, 2008 #1 M mouzid Full Member level 5 Joined Jun 22, 2007 Messages 248 Helped 9 Reputation 18 Reaction score 0 Trophy points 1,296 Activity points 2,876 MATLAB Stupid Question Hello, Ho can say me what's wrong with my code: r=1:.1:10 y=atan(5*r)-2*atan(r^-9) plot(r,y) Matlab says ??? Error using ==> mpower Matrix must be square. Error in ==> PM at 2 y=atan(5*r)-2*atan(r^-9)
MATLAB Stupid Question Hello, Ho can say me what's wrong with my code: r=1:.1:10 y=atan(5*r)-2*atan(r^-9) plot(r,y) Matlab says ??? Error using ==> mpower Matrix must be square. Error in ==> PM at 2 y=atan(5*r)-2*atan(r^-9)
Jun 12, 2008 #2 AdvaRes Advanced Member level 4 Joined Feb 14, 2008 Messages 1,163 Helped 113 Reputation 220 Reaction score 51 Trophy points 1,328 Location At home Activity points 7,442 Re: MATLAB Stupid Question Add a dot before the expenential r=1:.1:10 y=atan(5*r)-2*atan(r.^-9) plot(r,y)
Re: MATLAB Stupid Question Add a dot before the expenential r=1:.1:10 y=atan(5*r)-2*atan(r.^-9) plot(r,y)