我制作了半径为1的圆柱体的流线图。有没有办法去除圆柱体内的什么,甚至可以使用不同颜色的圆柱体来提高圆柱体?柱面流线图
clear
% make axes
xymax = 2;
x = linspace(-xymax,xymax,100);
y = linspace(-xymax,xymax,100);
% note that x and y don't include 0
[X,Y] = meshgrid(x,y);
R = sqrt(X.^2 + Y.^2);
sin_th = Y./R;
cos_th = X./R;
U = 1;
a = 1;
psi = U*(R - a*a./R).*sin_th;
figure
contour(X,Y,psi,[-3:.25:3],'-b');
如果设置了圆的(矩形的)“FaceColor”属性你不会需要屏蔽。 –