matlab中reshape和repmat使用方法

1.reshape

                                       

reshape(A,3,2) 结果:

                                         

竖着存储1,4,2,5,3,6



2.再来看看repmat

repmat(A,5,2) 结果:

                                                          

repmat('  good yes  ',2,3)结果:

                                                          

repmat(NaN,3,2)

                                                              

猜你喜欢

转载自blog.csdn.net/qq_15698613/article/details/84839645