How do I convert a 2X2 matrix to 4X4 matrix in MATLAB?

后端 未结 7 1026
無奈伤痛
無奈伤痛 2020-12-03 23:26

I need some help in converting a 2X2 matrix to a 4X4 matrix in the following manner:

A = [2 6;
     8 4]

should become:

B =         


        
7条回答
  •  余生分开走
    2020-12-04 00:06

    There is a Reshape() function that allows you to do this...

    For example:

    reshape(array, [64, 16])
    

    And you can find a great video tutorial here

    Cheers

提交回复
热议问题