Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Matrix Dimensions Problem

Status
Not open for further replies.

colsandurz

Electrical
Joined
Dec 7, 2007
Messages
1
Location
US
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);

note the '.' in front of the '/'

type 'help /' to learn more
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top