필터 지우기
필터 지우기

how to plot figure of expression with `in RootOf`?

조회 수: 1 (최근 30일)
dcydhb dcydhb
dcydhb dcydhb 2019년 12월 23일
답변: Walter Roberson 2019년 12월 25일
i use ilaplace to get the output signal but how to plot the output signal `xt`
codes are as this
syms t s
gs=(5*s + 4)/(s^4 + 4*s^3 + 2*s^2 + 3*s);
us= laplace(sin(t + pi/6), t, s);
xs = us*gs;
xt = ilaplace(xs, s, t)
and the xt is
xt =
sin(t)/4 - (9*cos(t))/4 + (5*symsum(exp(r3*t)/(3*r3^2 + 8*r3 + 2), r3 in RootOf(s3^3 + 4*s3^2 + 2*s3 + 3, s3)))/4 + (7*3^(1/2)*symsum((r3*exp(r3*t))/(3*r3^2 + 8*r3 + 2), r3 in RootOf(s3^3 + 4*s3^2 + 2*s3 + 3, s3)))/12 + (2*3^(1/2))/3 + (35*symsum((r3*exp(r3*t))/(3*r3^2 + 8*r3 + 2), r3 in RootOf(s3^3 + 4*s3^2 + 2*s3 + 3, s3)))/4 - (3^(1/2)*cos(t))/4 - (5*3^(1/2)*symsum((r3^2*exp(r3*t))/(3*r3^2 + 8*r3 + 2), r3 in RootOf(s3^3 + 4*s3^2 + 2*s3 + 3, s3)))/12 - (9*3^(1/2)*sin(t))/4 + (95*3^(1/2)*symsum(exp(r3*t)/(3*r3^2 + 8*r3 + 2), r3 in RootOf(s3^3 + 4*s3^2 + 2*s3 + 3, s3)))/12 + (9*symsum((r3^2*exp(r3*t))/(3*r3^2 + 8*r3 + 2), r3 in RootOf(s3^3 + 4*s3^2 + 2*s3 + 3, s3)))/4
>>
so how to plot `xt` with `t`?
  댓글 수: 3
dcydhb dcydhb
dcydhb dcydhb 2019년 12월 25일
but what is the relationship between MuPAD and the plot?
dcydhb dcydhb
dcydhb dcydhb 2019년 12월 25일
i just want to know if there is a way to plot `xt-t` if t=0:0.1:50 , and thanks a lot!

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2019년 12월 25일
Tt=0:0.1:50;
Y=double(subs(xt, t, Tt)) ;
plot(tt, Y)

카테고리

Help CenterFile Exchange에서 2-D Function Plots에 대해 자세히 알아보기

제품


릴리스

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by