Combine arrays
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
In order to visualise my simulation i want to plot some results. During my simulation i created multiple arrays of the size= 96x1, 96x3, 96x5.
Want i want to achieve is to combine these arrays into a single 96x9 array as i see no other way to plot them all into one graph.
Can anyone help? :
Thank you,
Kris
0 Commenti
Risposta accettata
Kye Taylor
il 12 Giu 2012
@Sean's answer is great. (That's my vote up there...)
To suggest other ways to plot arrays on the same axis, try
Approach 1)
figure, hold on
plot(x1)
plot(x2)
plot(x3)
Approach 2.)
plot(1:length(x1),x2,1:length(x2),x2,1:length(x3),x3)
2 Commenti
Sean de Wolski
il 12 Giu 2012
don't hold on
figure;
plot(x1)
Now either make a new figure and plot(x2) or just call plot(x2) and plot(x1) will be overwritten.
Più risposte (2)
Vedere anche
Categorie
Scopri di più su Line Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!