How can i find results of functions for symbolic points?
2 views (last 30 days)
Show older comments
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
0 Comments
Accepted Answer
Ameer Hamza
on 30 Oct 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
0 Comments
More Answers (0)
See Also
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!