arbitrary symbolic functions - Symbolic math toolbox

4 views (last 30 days)
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??

Accepted Answer

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

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!