- /
-
I love MATLAB!!
on 12 Oct 2021
- 3
- 61
- 0
- 0
- 280
p=-pi:0.1:pi; p2=pi*sin(p)./p; g=.5*p.*sin(p2*.872); h=-abs(p).*cos(p2);
for k=[2,4,6,8]
subplot(3,3,k); plot(g,h); fill(g,h,'r'); axis tight;axis square;
end
c=160*membrane(1,100);
subplot(3,3,5); surface(c,'edgecolor','none');
view(3);colormap(hot); caxis([1,200]); axis tight;axis square;