フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

subscripted assignment dimension mismatch - edge effect

1 回表示 (過去 30 日間)
Rdmato33
Rdmato33 2015 年 10 月 13 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hello, I am trying to create 92 samples of 5x5 cells from an image. Problem : the loop is stopped by this message : subscripted assignment dimension mismatch. This is due to the edge effect (see below). How can I launch the loop without problem? How can I adapt the matrix size located to the edge?
This is my code :
for m=1:92
a(:,:,m) = svf(xy_points(m,1)-2:xy_points(m,1) + 2, xy_points(m,2)-2:xy_points(m,2)+2);
end
Thanks.

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by