Transform array to matrix
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
DIMITRA GIANNOPOULOU
le 5 Mar 2018
Réponse apportée : James Tursa
le 5 Mar 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 commentaires
Réponse acceptée
James Tursa
le 5 Mar 2018
Hint: Look at combining the results of A(1:end-1) and A(2:end) into your resulting matrix.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Resizing and Reshaping Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!