xlabel do not appear in plot

11 ビュー (過去 30 日間)
가현
가현 2024 年 3 月 27 日
コメント済み: Dyuman Joshi 2024 年 3 月 27 日
%라플라스 변환
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 日
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 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!