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!

matlab syntax help

Status
Not open for further replies.

PMack

Aerospace
Joined
Mar 12, 2005
Messages
2
Location
US
I have a matrix that is a function of the symbolic variable s, and i'm trying to solve for the value of s that makes the determinant of the matrix = 0. Here is the code:

syms s
matrix=[s^2+1 s^2*2+1;2*s^2 3*s^2+1];
d=det(matrix);
solve('d=0');

I'm almost positive the problem is with the solve line because everything works up to that point. So how do I get the solve command to solve an equation that's in terms of another variable?
 
Ok, I figured it out. I needed the command subs(d) to get rid of the symbolic variables.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top