How can i find results of functions for symbolic points?

3 Ansichten (letzte 30 Tage)
Volkan Yangin
Volkan Yangin am 30 Okt. 2020
Beantwortet: Ameer Hamza am 30 Okt. 2020
Hi,
I have 2 different function and i don't know how i can get function results for 3 symbolic points. Final state of the functions should be symbolic.
Thanks a lot!
Points:
[x1; x2; u]=[1 - (1428408862663155*t)/140737488355328; 1 - (4686410245993191*t)/18014398509481984; 0]
Functions:
x1_dot =(1936*sin((3*atan((5679527*x2)/156250000 - (17263*x1)/625000 + (33*atan((61*x1)/2500 - (20069*x2)/625000))/250))/2))/1025 - 10*x2 + (1936*sin((3*atan((17263*u)/62500 - (17263*x1)/625000 - (6404573*x2)/156250000 + (33*atan((61*x1)/2500 - (61*u)/250 + (22631*x2)/625000))/250))/2))/1025
x2_dot =(955416*sin((3*atan((5679527*x2)/156250000 - (17263*x1)/625000 + (33*atan((61*x1)/2500 - (20069*x2)/625000))/250))/2))/333125 + (1077384*sin((3*atan((17263*u)/62500 - (17263*x1)/625000 - (6404573*x2)/156250000 + (33*atan((61*x1)/2500 - (61*u)/250 + (22631*x2)/625000))/250))/2))/333125

Akzeptierte Antwort

Ameer Hamza
Ameer Hamza am 30 Okt. 2020
You need to assign value of x1, x2, and u seperately. The following code works without error
syms t
x1 = 1 - (1428408862663155*t)/140737488355328;
x2 = 1 - (4686410245993191*t)/18014398509481984;
u = 0;
x1_dot = (1936*sin((3*atan((5679527*x2)/156250000 - (17263*x1)/625000 + (33*atan((61*x1)/2500 - (20069*x2)/625000))/250))/2))/1025 - 10*x2 + (1936*sin((3*atan((17263*u)/62500 - (17263*x1)/625000 - (6404573*x2)/156250000 + (33*atan((61*x1)/2500 - (61*u)/250 + (22631*x2)/625000))/250))/2))/1025
x2_dot = (955416*sin((3*atan((5679527*x2)/156250000 - (17263*x1)/625000 + (33*atan((61*x1)/2500 - (20069*x2)/625000))/250))/2))/333125 + (1077384*sin((3*atan((17263*u)/62500 - (17263*x1)/625000 - (6404573*x2)/156250000 + (33*atan((61*x1)/2500 - (61*u)/250 + (22631*x2)/625000))/250))/2))/333125
Output from live editor

Weitere Antworten (0)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help 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