首页 > 代码库 > slice切片函数

slice切片函数

clc;
clear all;
close all;

[X,Y,Z,V] = flow;
x1 = min(min(min(X)));
x2 = max(max(max(X)));
y1 = min(min(min(Y)));
y2 = max(max(max(Y)));
z1 = min(min(min(Z)));
z2 = max(max(max(Z)));
sx = linspace(x1 + 1.3,x2,5);%五个垂直x面的切片;
sy = 0;
sz = 0;
slice(X,Y,Z,V,sx,sy,sz);
view([-33,36]);
shading interp;
colormap jet;

slice切片函数