How to add rows of a cell
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Asim Ismail
am 7 Sep. 2017
Kommentiert: Asim Ismail
am 7 Sep. 2017
I have a cell of size 9x3. How can I add all the rows of this cell, and get 3(number of columns) separate arrays out of this cell. and allocating each array a title, like (xx, yy , zz).
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 7 Sep. 2017
then try this:
% Add columns
xx = sum([ca{:, 1}])
yy = sum([ca{:, 2}])
zz = sum([ca{:, 3}])
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with Image Processing Toolbox 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!