example_isosurface.m
来自「基础程序」· M 代码 · 共 22 行
M
22 行
% example_isosurface.m
% 绘制等值面示例
% 生成绘制图形数据
[x,y,z,v]=flow(13);
% 通过isosurface函数寻找等值面
fv=isosurface(x,y,z,v,-2);
% figure1:patch, v=3;
subplot(1,2,1);
p=patch(fv);
set(p,'facecolor',[.5 .5 .5],'edgecolor','black');
view(-30,30);
axis equal tight;
grid on;
title('figure1: shrinkfaces surface, v=2');
% figure2:patch, v=3;
subplot(1,2,2);
p=patch(shrinkfaces(fv,.3));
set(p,'facecolor',[.5 .5 .5],'edgecolor','black');
view(-30,30);
axis equal tight;
grid on;
title('figure2: shrinkface surface, v=2');
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?