Borrar filtros
Borrar filtros

How to convert the 1D matrix into 2D matrix?

26 visualizaciones (últimos 30 días)
PLACEIUS NISHIGA G
PLACEIUS NISHIGA G el 8 de Feb. de 2018
Editada: Birdman el 8 de Feb. de 2018
I have 1D matrix.now I want to convert the 1D matrix into 2D matrix.can you give me the code to convert it?

Respuesta aceptada

Birdman
Birdman el 8 de Feb. de 2018
Editada: Birdman el 8 de Feb. de 2018
By using reshape function:
A=randi([1 6],1,10); %demo data
reshape(A,2,[])

Más respuestas (0)

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by