Differencial equation of eq "without" variables?
Afficher commentaires plus anciens
Good day to all of you,
I would like to ask a question about differencial / derivative (don't know the right "syntax" - not an english native speaking person).
My problem is that I have to do the Diff Eq of bending curve for my thesis but I don't know how to derive that equation if I know everything in it. even the x1 (which is my derivative parameter) I know. It's [0, 2, 4, 6, 8, .. 200] (for example).
If I do it in my paper, it's easy (as shown in the picture) but I don' know how to do it in matlab.
Can anybody help please?
3 commentaires
Son Goku ssj4
le 3 Avr 2013
Walter Roberson
le 3 Avr 2013
There is no way to "syms all". However, you can put multiple variables on one "syms" line
syms x1 x2 pqr17
Son Goku ssj4
le 3 Avr 2013
Modifié(e) : Son Goku ssj4
le 3 Avr 2013
Réponses (1)
Walter Roberson
le 3 Avr 2013
xvals = 5:.01:7 %for example
syms x
eq = x^2 + x - 5
eq_x = double(subs(eq, x, xvals));
plot(xvals, eq_x);
eq_D = diff(eq, x);
eq_D_x = double( subs(eq_D, x, xvals) );
plot(xvals, eq_D_x);
Catégories
En savoir plus sur Symbolic Math Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!