필터 지우기
필터 지우기

How can i find results of functions for symbolic points?

조회 수: 2 (최근 30일)
Volkan Yangin
Volkan Yangin 2020년 10월 30일
답변: Ameer Hamza 2020년 10월 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