MATLAB reshape,repmat简单示例

来源:互联网 发布:linux zip 打包文件夹 编辑:程序博客网 时间:2024/06/07 13:09

ind=reshape(1:3*4,3,4)

ind =

 1     4     7    10 2     5     8    11 3     6     9    12

ind=reshape(1:3*4,4,3)

ind =

 1     5     9 2     6    10 3     7    11 4     8    12

x=repmat(-.1,[3,4])

x =

-0.1000 -0.1000 -0.1000 -0.1000
-0.1000 -0.1000 -0.1000 -0.1000
-0.1000 -0.1000 -0.1000 -0.1000

0 0
原创粉丝点击