How can i find results of functions for symbolic points?

2 次查看(过去 30 天)
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

采纳的回答

Ameer Hamza
Ameer Hamza 2020-10-30
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Calculus 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by