How to add rows of a cell

1 次查看(过去 30 天)
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).

采纳的回答

Image Analyst
Image Analyst 2017-9-7
then try this:
% Add columns
xx = sum([ca{:, 1}])
yy = sum([ca{:, 2}])
zz = sum([ca{:, 3}])

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with Image Processing Toolbox 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by