Matlab: Create Matrix from Single Column Data

  • Thread starter Thread starter rishabhdutta
  • Start date Start date
  • Tags Tags
    Matlab
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 2K views
rishabhdutta
Messages
4
Reaction score
0
I have a single column data of say length 1000. I want to make a matrix m * n using that data. m*n may need not be 1000, it can be less. looking for the script.
 
Physics news on Phys.org
Thank you for the effort.

Had to use looping. reshape couldn't help me much as the no. of elements in the desired matrix have to be same as in the provided matrix form. for eg. I would like to get 4*3 matrix from the 15*1 matrix