I have got data stored in one row in the columns (24:419). I want to convert this data to a grid with the size 18x22.
Is there any way I could do this?

 Akzeptierte Antwort

KSSV
KSSV am 5 Feb. 2019

1 Stimme

A = rand(1000) ;
col = 24:419 ; % your columns
row = 7 ; % your row
B = reshape(A(row,col),18,22) ;
pcolor(B)

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2015a

Gefragt:

am 5 Feb. 2019

Beantwortet:

am 5 Feb. 2019

Community Treasure Hunt

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

Start Hunting!

Translated by