Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Only one plot when expecting multiple

조회 수: 6 (최근 30일)
Brecht Leenmans
Brecht Leenmans 2018년 4월 12일
마감: MATLAB Answer Bot 2021년 8월 20일
Why do I get only plot if I use this script? I try to get one plot for the value of a at the beginning
while a>0
while z > 0
plot(x{1,z}(:,1),y{a,z}(:,1))
hold on
z = z-1;
end
hold off
z = B;
a = a-1;
end

답변 (1개)

KSSV
KSSV 2018년 4월 12일
Remove hold off from the loop.
  댓글 수: 1
Brecht Leenmans
Brecht Leenmans 2018년 4월 12일
I like to obtain one plot for every start value of a and on each plot iI like to have an amount of z 2D lines.

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by