different set of subplot with loop

조회 수: 2 (최근 30일)
Saurabh Srivastava
Saurabh Srivastava 2016년 1월 8일
답변: Mohammad Abouali 2016년 1월 8일
Hi all, I want to plot data for two loop. first loop will define the different figure while other loop will define the subplot. for example I have i=1:3 and j=1:6 the I need three figure and each figure must have 6 subplot. The plot should be done in loop.

채택된 답변

Mohammad Abouali
Mohammad Abouali 2016년 1월 8일
for i=1:3
figure
for j=1:6
%calculation
subplot(2,3,j);
%plot commands
end
end

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by