Matrix Dimensions Problem
Matrix Dimensions Problem
(OP)
Hi, I know this is probably a basic problem I but I'm having trouble with it. My problem is that I want to plot this function, h, but since the variable, s, is in the demoninator I get a matrix dimensions error. Note: j=srt(-1).
>> s=-10:.1:10;h=3/(j*s+2);
??? Error using ==> mrdivide
Matrix dimensions must agree.
Thanks for any help.
>> s=-10:.1:10;h=3/(j*s+2);
??? Error using ==> mrdivide
Matrix dimensions must agree.
Thanks for any help.





RE: Matrix Dimensions Problem
h=3./(j*s+2);
note the '.' in front of the '/'
type 'help /' to learn more