|
么么哒!!!我跑出来了!

给你!
- [x,y,z]=meshgrid(linspace(-1.5,1.5));
- f=@(x,y,z)(x.^2 + (9/4)*y.^2 + z.^2 - 1).^3 - x.^2.*z.^3 - (9/80)*y.^2.*z.^3;
- p=patch(isosurface(x,y,z,f(x,y,z),0));
- view(3);
- axis equal
- set(p,'FaceVertexCData',jet(size(get(p,'faces'),1)) ,'FaceColor', 'flat', 'EdgeColor', 'none')
复制代码
|
|