How do I create array with values from a specific location within each cell of a cell array.

9 vues (au cours des 30 derniers jours)
I want to create an array with all the values at location(1,2) in each cell of this cell array, it should be simple but doesn't seem to be working for me. (each cell is a 2x2).

Réponse acceptée

madhan ravi
madhan ravi le 30 Sep 2020
Wanted = cellfun(@(x) x(1,2), cell_array)

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by