MATLAB expresses jet velocity with equipotential line and draws colorful colors

clear all;
clf;
[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)));
s1=linspace(x1+1.2,x2,5);
s2=0;
s3=0;
slice(X,Y,Z,V,s1,s2,s3);
view([-30,38]);
shading interp;
colormap parula;
%以下指令为设置图形的透明度
alpha('color');
alphamap('rampdown');
alphamap('increase',0.14);
colorbar;
axis off
%以下指令用等位线表现射流速度
clf;
v1=min(min(min(V)));
v2=max(max(max(V)));
c1=linspace(v1,v2,15);
contourslice(X,Y,Z,V,s1,s2,s3,c1);
view([-15,30])
colormap parula;
colorbar;box on

insert image description here

colormap turbo

insert image description here

colormap jet

insert image description here

colormap hsv

insert image description here

colormap hot

insert image description here

colormap cool

insert image description here

colormap spring

insert image description here

colormap summer

insert image description here

colormap autumn

insert image description here

colormap winter

insert image description here

colormap gray

insert image description here

colormap bone

insert image description here

colormap copper

insert image description here

colormap pink

insert image description here

colormap lines

insert image description here

colormap colorcube

insert image description here

colormap prism

insert image description here

colormap flag

insert image description here

colormap default

insert image description here
Development tools: MATLAB 2022b
WeChat Alt+A screenshot tool

Guess you like

Origin blog.csdn.net/m0_38127487/article/details/131887134