Matlab举着提取索引行的内容。
古いコメントを表示
我想提取矩阵a的特定行,行号的索引我用 id矩阵 表示出来,可是一直在提示我符号书写错误,一直报错,我检查了都是英文书写也没有中文,麻烦大佬帮我看看是怎么回事
a=[1,2,3;
4,5,6;
7,8,9;
10,11,12;
13,14,15;
16,17,18];id=[1;2;5];b=(id,:);

回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!