×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

matlab syntax help

matlab syntax help

matlab syntax help

(OP)
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?

RE: matlab syntax help

(OP)
Ok, I figured it out.  I needed the command subs(d) to get rid of the symbolic variables.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources