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

8 Ansichten (letzte 30 Tage)
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).

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Matrix Indexing 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!

Translated by