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??

 채택된 답변

Walter Roberson
Walter Roberson 2013년 6월 21일

1 개 추천

A = 9/13; %arbitrary
syms x(t)
M = A * sin(x(t));
diff(M,t)

댓글 수: 4

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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by