필터 지우기
필터 지우기

How can i plot figure angaist specific number of ii likefor all ii that are multiple of 10

조회 수: 1 (최근 30일)
function save_figures( Pos_fin, targetCoordinates,ii= )
temp = find(Pos_fin(:,1) == 0);
if(temp(:,1) ~= 0)
Pos_fin(temp(1):end,:) = [];
end
figureFullScreen
subplot_er(1,1,1); plot3(Pos_fin(:, 1), Pos_fin(:,2), Pos_fin(:,3)), hold on, scatter3(targetCoordinates(:, 1), targetCoordinates(:, 2), targetCoordinates(:, 3)),
set(gca,'fontsize', 20)
set(findall(gca, 'Type', 'Line'),'LineWidth',2);
set (gca,'color','none')
grid on, xlabel('\rightarrow X'), ylabel('\rightarrow Y'), zlabel('\rightarrow Z')
print(gcf, num2str(ii),'-depsc','-r600');
savefig(num2str(ii)),
close all
end

채택된 답변

KSSV
KSSV 2018년 10월 16일
for i = 1:100
if ~mod(i,10)
plot(rand(10,1))
title(sprintf('i=%d',i))
drawnow
pause(0.5)
end
end

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by