Convert a column vector to an array matrix
48 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mudasser Seraj
am 11 Feb. 2018
Bearbeitet: the cyclist
am 30 Jun. 2021
Hi, Suppose, I have a 500x1 column vector How do I convert it into a 25x20 array matrix where 1st column values of the matrix will be 1st 25 values of the vector and so on.
2 Kommentare
M Ray
am 26 Jun. 2021
How to convert 1*259 row vector into a matrix by which first row of the matrix will be first 50 values, second row will be the 3rd element of row vector to 54 elements and so on...
FOR eg:[1 2 3 ........50; 4 5 ........53; 6,7......,55]
the cyclist
am 30 Jun. 2021
Bearbeitet: the cyclist
am 30 Jun. 2021
I suggest you open a new question. A comment on a 3-year-old question won't get much exposure.
Akzeptierte Antwort
Weitere Antworten (1)
Naufal Fathoni
am 8 Jul. 2019
same case, but i will change 25 x 50 array matrix, but the first row matrix must be 1-50? Thanks.
1 Kommentar
the cyclist
am 8 Jul. 2019
I'm not sure what you mean, but I think what you want is
M = reshape(V,50,25)';
If that is not what you want, I suggest you open a new question, with a bit more description (rather than writing an "answer" here).
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!