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

3 visualizaciones (últimos 30 días)
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).

Respuesta aceptada

madhan ravi
madhan ravi el 30 de Sept. de 2020
Wanted = cellfun(@(x) x(1,2), cell_array)

Más respuestas (0)

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by