×
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

Changing a variable to the subject of an equation?!

Changing a variable to the subject of an equation?!

Changing a variable to the subject of an equation?!

(OP)
Is there a command that will do this for me or is there another way of doing it? If so, could you give me a few tips on how to do it?

Thanks
Louis Leondiou

RE: Changing a variable to the subject of an equation?!

Are you trying to ask how to solve a system of equations like the following?

The problem below is to solve for the acceleration vector components of a fluid particle in a fluild velocity field defined by,

u=z+t
v=xy+3t
w=x^2*2y*t/2


This would be done by solving the following equations

ax=du/dt+u*du/dx+v*du/dy+w*du/dz

ay=dv/dt+u*dv/dx+v*dv/dy+w*dv/dz

az=dw/dt+u*dw/dx+v*dw/dy+w*dw/dz

If so look here.

If this doesnt help please state your question more clearly.


BsK

RE: Changing a variable to the subject of an equation?!

(OP)
Thanks for the reply but thats not quite what i mean.

for the equation
A = 2*pi*r*h + pi*r^2

How can i make 'r' the subject of the equation? Is there a simple code in matlab to do this?

Thanks
Louis

RE: Changing a variable to the subject of an equation?!

O.o


CODE

syms h,A,r
solve('A=2*pi*r*h+pi*r*r',r)

That do what you were looking for?

BsK

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