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

1 回表示 (過去 30 日間)
ruba ahmed
ruba ahmed 2022 年 5 月 9 日
コメント済み: dpb 2022 年 5 月 9 日
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]}

回答 (1 件)

Jonas
Jonas 2022 年 5 月 9 日
編集済み: Jonas 2022 年 5 月 9 日
how do you count in the matrix?
M{[3 4]}
gives you the content of cell 3 and 4

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by