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
0 件のコメント
採用された回答
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Calculus についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!