フィルターのクリア

How to create a grid from data in a row?

5 ビュー (過去 30 日間)
Mischa Klene
Mischa Klene 2019 年 2 月 5 日
回答済み: KSSV 2019 年 2 月 5 日
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?

採用された回答

KSSV
KSSV 2019 年 2 月 5 日
A = rand(1000) ;
col = 24:419 ; % your columns
row = 7 ; % your row
B = reshape(A(row,col),18,22) ;
pcolor(B)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

製品


リリース

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by