Adding up columns of a cell

I have a 10x60 cell (let’s call it A). I want to make a new cell (B) from this old one where I add certain values of the columns together so that I get a new 10x40 cell (this new cell will be smaller because 20 columns will be added up together). I have another cell 10x20 (C), that has the index of all the columns in A that need to be added together. How can I do this efficiently?
(note, the class of the things in the cells are "char")

3 commentaires

dpb
dpb le 6 Mar 2021
What does it mean to add " things in the cells are "char"?
Think we need to see a (small) sample problem of inputs and expected outputs.
Jan
Jan le 7 Mar 2021
Does "adding" mean a concatenation, if the contents of the cell elements are char vectors?
Sai Veeramachaneni
Sai Veeramachaneni le 9 Mar 2021
When 20 columns are added together, new cell array will be of 10x41 instead of 10x40. Can you provide with an example of what you are trying to do?

Connectez-vous pour commenter.

Réponses (0)

Question posée :

A
A
le 6 Mar 2021

Community Treasure Hunt

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

Start Hunting!

Translated by