Plot multiple lines from a matrix
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ivy Chen
am 28 Nov. 2017
Kommentiert: Ivy Chen
am 28 Nov. 2017
I have a 14X897 matrix and I would like to plot 14 lines with individual label (each has the 897 values in Y axis) against the same X axis. Here is the code I have and it generate the "Error using matlab.graphics.chart.primitive.Stair/set Invalid parameter/value pair arguments." error. In this example, PD_G_GLOCA_dBW is the 14*897 matrix.
for gloca_plot=1:size(PD_G_GLOCA_dBW,1)
g_(gloca_plot)=stairs(x5,PD_G_GLOCA_dBW(gloca_plot,:));
end;
hold off;
set(g_(gloca_plot),'DisplayName','GLONASS L1_%s',gloca_plot);
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 28 Nov. 2017
set(g_(gloca_plot),'DisplayName', sprintf('GLONASS L1_%s',gloca_plot));
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Line Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!