The Math Forum

Search All of the Math Forum:

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

Math Forum » Discussions » Software » comp.soft-sys.matlab

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

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 43
Registered: 4/7/10
assignment to variable in symbolic expression
Posted: Aug 24, 2011 11:16 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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
Now I want to do the same in MATLAB (because this is the only sybolic calculation that has to be done)
>> 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?

thanks in advance, martin

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.