Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: assignment to variable in symbolic expression
Replies: 2   Last Post: Aug 24, 2011 12:52 PM

 Messages: [ Previous | Next ]
 Martin Posts: 43 Registered: 4/7/10
assignment to variable in symbolic expression
Posted: Aug 24, 2011 11:16 AM

Hi,
I just started using symbolic toolbox, hope my question is not too basic...
I've done some calculations in Mupad:

eq1 := solve(ode(v''(z) = -1/15*z*(1-1/(2*a)-z/2), v(z)))
-> C3 + C2*z + z^4/360 - (z^3*(2*a - 1))/(180*a)
C3 := 0
solve(eq1,C2)
----------------------------------------------------------------------------------
Now I want to do the same in MATLAB (because this is the only sybolic calculation that has to be done)
---MATLAB----------------------------------------------------------------
>> eq1 = dsolve('D2y = -1/15*z*(1-1/(2*a)-z/2)','z')
eq1 =
z^4/360 + (1/(180*a) - 1/90)*z^3 + C5*z + C6
?
---------------------------------------------------------------------------
so how do I assign a value to C6 and solve the equation?