www.gusucode.com > symbolic 源码程序 matlab案例代码 > symbolic/TransparentSurfacePlotsExample.m
%% Multiple Surface Plots and Transparent Surfaces % Plot multiple surfaces using vector input to |fsurf|. % Alternatively, use |hold on| to plot successively on the same % figure. When displaying multiple surfaces on the same figure, % transparency is useful. Adjust the transparency of surface plots by using % the |FaceAlpha| property. |FaceAlpha| varies from |0| to |1|, where |0| % is full transparency and |1| is no transparency. % % Plot the planes $x+y$ and $x-y$ using vector input to |fsurf|. Show both % planes by making them half transparent using |FaceAlpha|. syms x y h = fsurf([x+y x-y]); h(1).FaceAlpha = 0.5; h(2).FaceAlpha = 0.5; title('Planes (x+y) and (x-y) at half transparency')