%라플라스 변환
syms x s
u1 = stepfun(x,0);
f1 = x.*exp(-3*x).*u1;
Lf = laplace(f1, s);
disp(Lf);
%f(t) plot
t = (-1:0.1:1);
u = stepfun(t,0);
f = t.*exp(-3*t).*u;
figure(2);
xlabel('Time,(s)')
ylabel('f(t)')
grid;
plot(t,f);
legend('f(t)')

 채택된 답변

Dyuman Joshi
Dyuman Joshi 2024년 3월 27일
편집: Dyuman Joshi 2024년 3월 27일

1 개 추천

Call the plot() command first and then define the labels and legend -
syms x s
u1 = stepfun(x,0);
f1 = x.*exp(-3*x).*u1;
Lf = laplace(f1, s);
disp(Lf);
t = (-1:0.1:1);
u = stepfun(t,0);
f = t.*exp(-3*t).*u;
figure(2);
%% plot command
plot(t,f);
%% add details after plotting
xlabel('Time,(s)')
ylabel('f(t)')
grid;
legend('f(t)')

댓글 수: 2

가현
가현 2024년 3월 27일
편집: 가현 2024년 3월 27일
문제가 해결되었습니다. 당신의 친절에 감사드립니다. 좋은 하루 되세요!
Problem solved. Thank you for your kindness. have a good day!
Dyuman Joshi
Dyuman Joshi 2024년 3월 27일
You're welcome! Thank you and you too!

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 2차원 플롯과 3차원 플롯에 대해 자세히 알아보기

태그

질문:

2024년 3월 27일

댓글:

2024년 3월 27일

Community Treasure Hunt

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

Start Hunting!