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!