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 ExchangeMatrix 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