필터 지우기
필터 지우기

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 CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품


릴리스

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by