Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock 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
Mar 12, 2005
2
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?
 
Replies continue below

Recommended for you

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