如何在新的matlab之前清除前一个数字?

Vin*_*ana 0 matlab

我已经实现了一个程序,其中代码如下

load('color_0.mat')
isosurface(foo,fo);
caxis([0.2 0.5])
colorbar
grid on; axis equal; colormap default; alpha(0.3);
hold on;  

plot3(35,30,15,'.','Color',[0,0,0],'MarkerSize',15); hold on; % Dorsal Raphe Nucleus  (DRN - serotonin, 5-HT)

xlabel('anterior-posterior (a.u.)'); ylabel('left-right (a.u.)'); zlabel('ventral-dorsal/inferior-superior (a.u.)'); 
grid on;

pause(.5)

load('color_1.mat')
isosurface(foo,fo);
caxis([0.2 0.5])
colorbar
grid on; axis equal; colormap default;  alpha(0.3);
hold on;  

plot3(35,30,15,'.','Color',[0,0,0],'MarkerSize',15); hold on; % Dorsal Raphe Nucleus (DRN - serotonin, 5-HT)

xlabel('anterior-posterior (a.u.)'); ylabel('left-right (a.u.)'); zlabel('ventral-dorsal/inferior-superior (a.u.)'); 
grid on;
Run Code Online (Sandbox Code Playgroud)

这样,这个数字就会被新的重叠.怎么避免这个?通过在其间使用clf,工具栏消失.

Eit*_*n T 5

这些图是叠加的,因为你正在使用hold on.hold off在图之间插入,以便新图清除旧图.