matlab极限 算完后想把图画出来,结果提示错误syms x ff=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 =0qyw =0qyu

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/05 22:51:51

matlab极限 算完后想把图画出来,结果提示错误syms x ff=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 =0qyw =0qyu
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.

matlab极限 算完后想把图画出来,结果提示错误syms x ff=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 =0qyw =0qyu
x定义不对,plot用得也不对
x = -20:0.1:20;
f=exp(-x).*sin(x);
plot(x, f);xlabel('x'); ylabel('f');