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
Thanks
Louis Leondiou





RE: Changing a variable to the subject of an equation?!
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?!
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?!
CODE
solve('A=2*pi*r*h+pi*r*r',r)
That do what you were looking for?
BsK