Filter löschen
Filter löschen

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

26 Ansichten (letzte 30 Tage)
PLACEIUS NISHIGA G
PLACEIUS NISHIGA G am 8 Feb. 2018
Bearbeitet: Birdman am 8 Feb. 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?

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by