matlab 举个简单的例子确定自变量x:x=0:0.1:2*pi; 定义取值范围0到2π,步长为0.1(取的点为0,0.1,0.2,……),或x=linspace(0,2*pi,100) 0到2π间均匀选取100个点y=cos(x);plot(x,y) 即曲线