|||
Syntax: A=[1,2;3,4;5,6;7,8]
Output: A= 1 2
3 4
5 6
7 8
Syntax: B=[9,10]
Output: B= 9 10
Syntax: C=[A(1:2,:); B; A(3:end,:)] % The row vector, B, is then inserted between the 2nd and 3rd row of the matrix A.
Output: C = 1 2
3 4
9 10
5 6
7 8
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2025-1-7 21:27
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社