Copy of multiple equal size arrays into one big array using loop

조회 수: 2 (최근 30일)
Muhammad Qasim Mughal
Muhammad Qasim Mughal 2017년 12월 13일
댓글: KL 2017년 12월 13일
i am working on a project where i want to store all of my equal size images into one variable possible array. i have multiple images of 64x64 size, i have to read all of them form a single folder and need to store them in one variable. please help me i use arr(i,::) where i is counter control variable but its doesn't work

답변 (1개)

KL
KL 2017년 12월 13일
편집: KL 2017년 12월 13일
Use counter variable on the third dimension if your matrix is 2D already, for example,
arr(:,:,counterVar)
or a cell array
arr{counterVar}
  댓글 수: 2
Muhammad Qasim Mughal
Muhammad Qasim Mughal 2017년 12월 13일
thanks a lot.
for training purpose which type of variable is better to save data in array variable or cell variable
KL
KL 2017년 12월 13일
If everything is numeric and of uniform size then I'd suggest a normal matrix.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by