matlab

matlab在新版ubuntu运行出错

链接http://askubuntu.com/questions/758892/matlab-not-work-on-ubuntu-16-04,解决方案:修改sys/os/glnxa64目录中的libstdc++.so.6为libstdc++.so.6.old,强制让其链接新的库。

心形线matlab画法

x=sin(t).^3*16;
y=13*cos(t)-5*cos(2*t)-2*cos(3*t)-cos(4*t);
plot(x,y)

三维心形matlab画法

[x,y,z]=meshgrid(linspace(-1.3,1.3));
val=(x.^2 + (9/4)*y.^2 + z.^2 - 1).^3 - x.^2.*z.^3 - (1/9)*y.^2.*z.^3;
p=patch(isosurface(x,y,z,val,0));
p.FaceColor = 'red';
p.EdgeColor = 'none';
axis equal
view(-10,24)
axis tight
camlight 
lighting gouraud

matlab画图

    xlim([1 l(1)]);
    ylim([1 l(1)]);
    zlim([1 3]);    %限制坐标范围
    set(gca,'XTick',[1 90]) %刻度的实际值
    set(gca,'YTick',[1 90])
    set(gca,'XTickLabel',{0,'\pi'})  %刻度标的值
    set(gca,'YTickLabel',{0,'\pi'})
    set(gca,'fontsize',35)  %字体大小
    set(gca,'fontname','times new roman')  %字体名

results matching ""

    No results matching ""