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