用matlab画x*sin(x)的图

如题所述

第1个回答  2013-01-21

syms x

ezplot(x*sin(x))

 

 

第2个回答  2013-01-21
clear all;clc;
y=@(x)x.*sin(x);
ezplot(y);grid on;
--------------------------
或者用数值方法(建议使用数值方法)
clear all;clc;
x=-2*pi:pi/20:2*pi;
y=x.*sin(x);
plot(x,y);grid on;本回答被提问者采纳
相似回答