Oct 29, 2006 #1 LouisLeondiou Computer Joined Oct 29, 2006 Messages 2 Location GB 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
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
Oct 30, 2006 #2 brokensoul Mechanical Joined Aug 10, 2006 Messages 48 Location US 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 Upvote 0 Downvote
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
Oct 31, 2006 Thread starter #3 LouisLeondiou Computer Joined Oct 29, 2006 Messages 2 Location GB 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 Upvote 0 Downvote
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
Nov 3, 2006 #4 brokensoul Mechanical Joined Aug 10, 2006 Messages 48 Location US 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 Upvote 0 Downvote
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