Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Only one plot when expecting multiple

4 visualizzazioni (ultimi 30 giorni)
Brecht Leenmans
Brecht Leenmans il 12 Apr 2018
Chiuso: MATLAB Answer Bot il 20 Ago 2021
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

Risposte (1)

KSSV
KSSV il 12 Apr 2018
Remove hold off from the loop.
  1 Commento
Brecht Leenmans
Brecht Leenmans il 12 Apr 2018
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.

Questa domanda è chiusa.

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by