필터 지우기
필터 지우기

Variable Substitution Using Symbolic Functions

조회 수: 3 (최근 30일)
Angel Quintanilla
Angel Quintanilla 2020년 6월 17일
댓글: madhan ravi 2020년 6월 17일
syms A(t) B(t) C(t) t
syms X Y Z
D=A+B+C
D(t) =
Ds=subs(D,[A,B,C],[X,Y,Z])
Ds(t) =
I'm trying to substitute a time function for dummy variables that aren't interpreted as functions of time. Here I would assume X,Y,Z would not be functions of t since X,Y,Z aren't declared as such.
My goal is to treat both x(->a) and dx/dt(->b) as two separete variables that I can differentiate to get dx/dt and dx^2/dt^2(->c)
  댓글 수: 3
Angel Quintanilla
Angel Quintanilla 2020년 6월 17일
the equations are pretty long but for example:
Ds=X+Y+Z where XYZ represent dummy variables and not not functions of time.
Hence Ds is not Ds(t) a funtion of time but of XYZ which are variables and not functions
madhan ravi
madhan ravi 2020년 6월 17일
See my answer below ;) then if you don’t want the equation to be a function of time.

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

채택된 답변

madhan ravi
madhan ravi 2020년 6월 17일
Use formula()

추가 답변 (0개)

카테고리

Help CenterFile 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