How to remove a column from a cell with matrices?

1 vue (au cours des 30 derniers jours)
Elin Toper
Elin Toper le 24 Mar 2020
Commenté : Elin Toper le 25 Mar 2020
Hi,
Sorry if I am expressing the question in the wrong way, but I have a 1x4076 called "y" cell with a 1x20 cell in each cell.
I am looking to extract the 20th colon in each cell.
I tried to use something a=cellfun( @(x) y(1,1), out ) but its not working. Anyone has any advice? Thanks

Réponses (1)

Peng Li
Peng Li le 24 Mar 2020
outCell = cellfun(@(x) x(:, end), inputCell, 'UniformOutput', 0) should work otherwise switch UniformOutput to 1 and try.

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by