Hi, can you show me how I could Extract the third and fourth elements of the cell array M?

2 visualizaciones (últimos 30 días)
M={'a' ,'ff' ,'dd' ,[1 2 3] ; [1] ,'ccc' ,34 ,[1 2] ; 'd3' ,'33fd' ,'k' ,[4]}
M =
3×4 cell array
{'a' } {'ff' } {'dd'} {[1 2 3]}
{[ 1]} {'ccc' } {[34]} {[ 1 2]}
{'d3'} {'33fd'} {'k' } {[ 4]}

Respuestas (1)

Jonas
Jonas el 9 de Mayo de 2022
Editada: Jonas el 9 de Mayo de 2022
how do you count in the matrix?
M{[3 4]}
gives you the content of cell 3 and 4

Categorías

Más información sobre Data Types en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by