thanks a lot Mike for the answer i made it by using
set(h,'visible','off')
set(h,'visible','on');
where 'h' is the plot variable
%defining variables
np=length(xT);
x=flip(xT);
y=yT;
z=zT;
h=figure();
set(h,'visible','off'); %ths prevent figure to show data
subplot (1,2,1)
% starting plotting first point plot1
plot3(x(1),y(1),z(1))
xlim([min(x) max(x)]);
ylim([min(y) max(y)]);
zlim([min(z) max(z)]);
grid
view([180 90])
hold on
%starting plotting first point plot2
subplot (1,2,2)
plot3(x(1),y(1),z(1))
xlim([min(x) max(x)]);
ylim([min(y) max(y)]);
zlim([min(z) max(z)]);
grid
view([180 0])
hold on
%starting add the others point
for i=2:np-1
subplot (1,2,1)
plot3(x(i:i+1),y(i:i+1),z(i:i+1),'-r','linewidth',2)
plot3(x(i+1),y(i+1),z(i+1),'o','markerfacecolor','r')
plot3([x(i+1) x(i+1)],[y(i+1) y(i+1)],[0 z(i+1)],'b')
subplot (1,2,2)
plot3(x(i:i+1),y(i:i+1),z(i:i+1),'-r','linewidth',2)
plot3(x(i+1),y(i+1),z(i+1),'o','markerfacecolor','r')
plot3([x(i+1) x(i+1)],[y(i+1) y(i+1)],[0 z(i+1)],'b')
pause(sec+0.05) %just a pause to see data better
set(h,'visible','on') %this show all the data again
end
%%clear temporary variables
clear enable_plot_vertical enable_plot_dot_3d...
enable_plot_line_3d i np on off