Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Changing a variable to the subject of an equation?!

Status
Not open for further replies.

LouisLeondiou

Computer
Oct 29, 2006
2
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
 
Replies continue below

Recommended for you

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
 
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
 
o_O


Code:
[url=http://www.mathworks.com/access/helpdesk/help/toolbox/symbolic/syms.html]syms[/url] h,A,r
[url=http://www.mathworks.com/access/helpdesk/help/toolbox/symbolic/solve.html]solve[/url]('A=2*pi*r*h+pi*r*r',r)

That do what you were looking for?

BsK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor