arbitrary symbolic functions - Symbolic math toolbox

I have an equation:
M = A sin(x(t));
and would like to find: dM/dt
is it possible to create symbolic functions without definition? for x(t) I dont have a definition. But I require:
diff(M,t).
How can an arbitrary symbolic function be declared??

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 21 Jun. 2013
A = 9/13; %arbitrary
syms x(t)
M = A * sin(x(t));
diff(M,t)

4 Kommentare

syms x(t) ??? Error using ==> syms at 61 Not a valid variable name.
I can declare symbolic variables but cannot declare symbolic functions. why could this be?
You must have an older version of MATLAB.
2010b. I'll try a newer version. Thanks!
yep it is, 2012a works.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by