Azzera filtri
Azzera filtri

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

26 visualizzazioni (ultimi 30 giorni)
I have 1D matrix.now I want to convert the 1D matrix into 2D matrix.can you give me the code to convert it?

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Resizing and Reshaping Matrices in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by