matlab极限 算完后想把图画出来,结果提示错误
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/11/09 02:53:42
matlab极限 算完后想把图画出来,结果提示错误
syms x f
f=exp(-x)*sin(x);
qyl=limit(f)
qyw=limit(f,inf)
qyua=limit(f,'x','0')
qyual=limit(f,'x','0','left')
qyuay=limit(f,'x','0','right')
x=20:0.1:20;
f=exp(-x).*sin(x);
plot(x,f)
qyl =
0
qyw =
0
qyua =
0
qyual =
0
qyuay =
0
plot(x,f)
|
Error:Missing variable or function.
syms x f
f=exp(-x)*sin(x);
qyl=limit(f)
qyw=limit(f,inf)
qyua=limit(f,'x','0')
qyual=limit(f,'x','0','left')
qyuay=limit(f,'x','0','right')
x=20:0.1:20;
f=exp(-x).*sin(x);
plot(x,f)
qyl =
0
qyw =
0
qyua =
0
qyual =
0
qyuay =
0
plot(x,f)
|
Error:Missing variable or function.
x定义不对,plot用得也不对
x = -20:0.1:20;
f=exp(-x).*sin(x);
plot(x, f);xlabel('x'); ylabel('f');
x = -20:0.1:20;
f=exp(-x).*sin(x);
plot(x, f);xlabel('x'); ylabel('f');