MATLAB用等位线表现射流速度并着丰富多彩颜色

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

在这里插入图片描述

colormap turbo

在这里插入图片描述

colormap jet

在这里插入图片描述

colormap hsv

在这里插入图片描述

colormap hot

在这里插入图片描述

colormap cool

在这里插入图片描述

colormap spring

在这里插入图片描述

colormap summer

在这里插入图片描述

colormap autumn

在这里插入图片描述

colormap winter

在这里插入图片描述

colormap gray

在这里插入图片描述

colormap bone

在这里插入图片描述

colormap copper

在这里插入图片描述

colormap pink

在这里插入图片描述

colormap lines

在这里插入图片描述

colormap colorcube

在这里插入图片描述

colormap prism

在这里插入图片描述

colormap flag

在这里插入图片描述

colormap default

在这里插入图片描述
开发工具:MATLAB 2022b
微信Alt+A截屏工具

猜你喜欢

转载自blog.csdn.net/m0_38127487/article/details/131887134