>> fplot(@(x)sin(x),[0,2*pi]);
>> axis square;%背景坐标轴为方形
>> grid on;%画出网格线
****
>> ezplot('x^2-1',[-6,6]);
****
>> ezplot('x^2-2*y2-1',[-6,6,-4,4]);
****
法一
>> t=-8:0.1:8;
>> x=6*sin(t);
>> y=6*cos(t);
>> z=3*t;
>> plot 3(x,y,z);
>> grid on;
法二
>> ezplot3('6*sin(t)','6*cos(t)','3*t',[-8,8]);
****
>> x=-5:0.2:5;
>> y=x;
>> [X Y]=meshgrid(x,y);%生成格点矩阵
>> Z=sin(sqrt(X.^2+Y.^2));%X,Y是坐标格点矩阵,Z是格点上的函数值
>> mesh(X,Y,Z);
将最后一行改成surf(X,Y,Z);
>> ezmesh('cos(u)*cos(v)','sin(u)*cos(v)','sin(v)',[0,2*pi,pi,-pi]);
>> axis equal;%纵横轴采用相等单位长度