rishabhdutta
- 4
- 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.
The discussion revolves around creating a matrix from a single column of data in MATLAB. Participants explore methods for reshaping the data into a specified matrix format, addressing both built-in functions and manual approaches.
The discussion reflects a lack of consensus on the best approach to take, with differing opinions on the utility of built-in functions versus manual looping methods.
Participants highlight limitations regarding the requirement that the number of elements in the desired matrix must match the original data size, which affects the applicability of certain methods.
A=ones(4,3);
B=eye(3);
C=A(1:3,:)-B;