立即学习:https://edu.youkuaiyun.com/course/play/24708/278796?utm_source=blogtoedu
尝试
ones(4) 4*4
ones(2,3) 2行3列
eye(3) 单位矩阵
A=rand(4)
B=diag(A) 取他对角线上的函数值
C=diag(B) 取对角函数
randn(1,20) 随机数
randperm(8) 随机的
立即学习:https://edu.youkuaiyun.com/course/play/24708/278796?utm_source=blogtoedu
尝试
ones(4) 4*4
ones(2,3) 2行3列
eye(3) 单位矩阵
A=rand(4)
B=diag(A) 取他对角线上的函数值
C=diag(B) 取对角函数
randn(1,20) 随机数
randperm(8) 随机的