Effacer les filtres
Effacer les filtres

How to create a grid from data in a row?

5 vues (au cours des 30 derniers jours)
Mischa Klene
Mischa Klene le 5 Fév 2019
Réponse apportée : KSSV le 5 Fév 2019
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?

Réponse acceptée

KSSV
KSSV le 5 Fév 2019
A = rand(1000) ;
col = 24:419 ; % your columns
row = 7 ; % your row
B = reshape(A(row,col),18,22) ;
pcolor(B)

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Produits


Version

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by