Transform array to matrix

11 visualizaciones (últimos 30 días)
DIMITRA GIANNOPOULOU
DIMITRA GIANNOPOULOU el 5 de Mzo. de 2018
Respondida: James Tursa el 5 de Mzo. de 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

Respuesta aceptada

James Tursa
James Tursa el 5 de Mzo. de 2018
Hint: Look at combining the results of A(1:end-1) and A(2:end) into your resulting matrix.

Más respuestas (0)

Categorías

Más información sobre Resizing and Reshaping Matrices en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by