MATLAB Answers

i have Question about Inverse lapalce transform & plot

조회 수: 2(최근 30일)
jongil park
jongil park 2021년 5월 10일
댓글: Star Strider 2021년 5월 11일
hi. i try to cording matlab to draw a graph of inverse laplace transofrm result
F is a function made of R and G. and i want to inverse laplace transform that function F and draw a graph.
i really try hard but it didn't work. maybe there is a error at plot cording.
can i get a advice about it?
thank you.
here's my cording.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
syms s
R = 1/s
G = 75/(s)^2+10.25*s+100.65
F = R * G
a = ilaplace (F)
x = t
t = [0,0.01,10];
y = a;
plot(x,y)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  댓글 수: 2
jongil park
jongil park 2021년 5월 11일
oh yes, that is right. i did mistake about this. thank you :D

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

채택된 답변

Star Strider
Star Strider 2021년 5월 10일
Try this —
syms s
R = 1/s
R = 
G = 75/(s)^2+10.25*s+100.65
G = 
F = R * G
F = 
a = ilaplace (F)
a = 
% x = t
t = [0 10];
y = a;
fplot(y,t)
grid
Use fplot, not plot, for symbollic plots.
.
  댓글 수: 5
Star Strider
Star Strider 2021년 5월 11일
@jongil park — As always, my pleasure!
@Paul — If you consider this to be a bug, or would like this as an ‘enhancement’, you can report it as such, request the enhancement, or both. Perhaps having this as an option (such as 'ShowDeltaFunction','on') would work.

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

추가 답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by