xlabel do not appear in plot
16 次查看(过去 30 天)
显示 更早的评论
%라플라스 변환
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)')
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 빅 데이터 처리 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!