Error : "Assignment has more non-singleton rhs dimensions than non-singleton subscripts"
古いコメントを表示
I am getting this error: can you help me please
Assignment has more non-singleton rhs dimensions than non-singleton subscripts at
OrientationEnd(ind,1) = Table(i,j);
% Finding Orientation ...
Table=[3*pi/4 2*pi/3 pi/2 pi/3 pi/4
5*pi/6 0 0 0 pi/6
pi 0 0 0 0
-5*pi/6 0 0 0 -pi/6
-3*pi/4 -2*pi/3 -pi/2 -pi/3 -pi/4];
% Ridge Ending Orientation ...
for ind = 1:length(CentroidEndX)
Klocal = K(CentroidEndY(ind)-2:CentroidEndY(ind)+2,CentroidEndX(ind)-2:CentroidEndX(ind)+2);
Klocal(2:end-1,2:end-1) = 0;
[i,j] = find(Klocal);
OrientationEnd(ind,1) = Table(i,j);
end
Table is a 5X5 matrix
2 件のコメント
Rik
2018 年 3 月 31 日
This will occur if there are more than one items in i and j.
Vishal Saini
2018 年 3 月 31 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Performance and Memory についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!