how to plot cell array giving the specific number of columns?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
John Agkali
am 13 Nov. 2014
Beantwortet: the cyclist
am 13 Nov. 2014
hello, i have this cell
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146098/image.png)
and I want to plot every cell array but giving a number of columns. How can i do that?
thanks in advance!
1 Kommentar
Guillaume
am 13 Nov. 2014
What do you mean by giving a number of columns? Do you just want to plot the first n columns of each array?
All on the same plot, or a plot for each cell array?
What sort of plot? If you just use plot on a matrix with 23 rows, you'll have 23 curves on your plot. Is that what you want?
You really need to give more information on what you want.
Akzeptierte Antwort
the cyclist
am 13 Nov. 2014
You are not very specific in what you mean, but I'm guessing you want something like this:
nrow = 5;
ncol = 7;
for ncell = 1:15
figure
plot(N_alpha{ncell}(1:nrow,1:ncol));
end
0 Kommentare
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!