Transform array to matrix
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
DIMITRA GIANNOPOULOU
am 5 Mär. 2018
Beantwortet: James Tursa
am 5 Mär. 2018
Hi, I want to transform the array A=[1 2 3 4 5] to this matrix A= [1 2; 2 3; 3 4; 4 5] Is it possible? Thank you very much
0 Kommentare
Akzeptierte Antwort
James Tursa
am 5 Mär. 2018
Hint: Look at combining the results of A(1:end-1) and A(2:end) into your resulting matrix.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Resizing and Reshaping Matrices 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!