#
Matlab矩阵操作
Matlab matrix operations
#
1. 矩阵的定义与构造
设置A=[1 2 3 5; 8 5 4 6]
The definition and construction of matrix
Set A=[1 2 3 5; 8 5 4 6]
B=1:2:9
其中1、2分别确定最大值 ,2为步长
B=1:2:9
Among them, 1 and 2 respectively determine the maximum value, and 2 is the step size
C=repmat(B,3,1) 重复
C=repmat(B,3,1)repeat
D=ones(2,4) 表示生成一个2行4列且值均为1的矩阵
Generate a matrix with 2 rows and 4 columns and the value is 1