如何根据矩阵的某一列值的不同将矩阵进行分割并命名。
Mostrar comentarios más antiguos
大家好,我现在有一个矩阵,已经按第一列和第二列的升序进行了排序,现在我想通过第一列数值大小的不同将矩阵分成单独的几个不同的矩阵,要怎么样才可以实现呢,例如:[45 2 3;45 3 3;45 4 8; 47 2 1;47 3 6;47 4 9;51 2 8;51 3 6;51 4 7]分成单独的[45 2 3;45 3 3;45 4 8],[47 2 1;47 3 6;47 4 9],[51 2 8;51 3 6 ;51 4 7]并把分出来的三个矩阵按45 47 51进行命名呢。谢谢大家
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre 运算符和基本运算 en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!