第1个回答 推荐于2018-03-30
3组数据就是曲面的x,y,z坐标,程序根据要求不同而异,程序可这样写:
[x,y,z]=meshgrid(linspace(-5,5));
val=(x.^2 + (9/4)*y.^2 + z.^2 - 1).^3 - x.^2.*z.^3 - (1/9)*y.^2.*z.^3;%isosurface(x,y,z,val,0)
p = patch(isosurface(x,y,z,val,0));
isonormals(x,y,z,val,p)
set(p,'FaceColor','red','EdgeColor','none');
axis equal
grid on
view(-10,24)
%colormap(hot)
%axis off
camlight
rotate3d on
colormap(jet)
colorbar('location','EastOutside')
%colorbar('East')
ylabel(colorbar,'Emission intensity (a.u.)','fontsize',18)
set(gca,'fontsize',14,'linewidth',2)本回答被网友采纳