for i=1:n-1
Image2 = uigetfile('*p*');
ImageArray2 =imread(Image2);
MDArray = cat(3,ImageArray,[ImageArray2]);
end
I need to add more images onto the third dimension but I am unsure how to do this. Can anyone help with any tips/suggestions?

 채택된 답변

Steve Eddins
Steve Eddins 2020년 12월 28일

0 개 추천

Try something like this:
for i = 1:n-1
next_image = uigetfile('*p*');
ImageArray = cat(3,ImageArray,next_image);
end
When this loop finishes, the variable ImageArray is your multidimensional array.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

제품

질문:

2020년 12월 28일

편집:

JC
2020년 12월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by