How can i remove "==" from symbolic equation?

조회 수: 6 (최근 30일)
Volkan Yangin
Volkan Yangin 2020년 11월 19일
댓글: KSSV 2020년 11월 19일
Edit: I have solved my problem with rhs.
Hi,
I have created a symbolic equation via isolate command. Resulting equation is:
x1_dot == (1570*u)/41 - x3*x2_dot - (3060*x1)/(41*x3) - (6426*x2)/(1025*x3)
%Should be: x1_dot = (1570*u)/41 - x3*x2_dot - (3060*x1)/(41*x3) - (6426*x2)/(1025*x3)
I should remove logical equality to continue my work. How can i make this?
Thanks,
  댓글 수: 3
Volkan Yangin
Volkan Yangin 2020년 11월 19일
Actually, i asked the question uncorrect; i'm sorry.
I have defined an equation as eqn_1 and arranged it according to x1_dot via isolate command.
x1_dot=isolate(eqn_1,x1_dot)
I am using x1_dot in next steps. When i write x1_dot at command window, the result contains ==. This two equality symbol make my code wrong.
I wish, it may be clear. :)
Volkan Yangin
Volkan Yangin 2020년 11월 19일
편집: Volkan Yangin 2020년 11월 19일
Haha i did it:
It seems very easy :))
x1_dot=rhs(isolate(eqn_1,x1_dot));

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

채택된 답변

KSSV
KSSV 2020년 11월 19일
syms x1_dot u x2_dot x1 x2 x3
x1_dot = (1570*u)/41 - x3*x2_dot - (3060*x1)/(41*x3) - (6426*x2)/(1025*x3)
x1_dot = 
  댓글 수: 5
Volkan Yangin
Volkan Yangin 2020년 11월 19일
How can you get result as png format?
KSSV
KSSV 2020년 11월 19일
I don't think there is option of saving as image.....you can try in Live editor...and try to print the variable...it should be printed as shown in the answer...then you can save it as image I guess. Or there might be any other way which I am mot aware.

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

추가 답변 (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