Error : "Assignment has more non-singleton rhs dimensions than non-singleton subscripts"
Show older comments
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 Comments
Rik
on 31 Mar 2018
This will occur if there are more than one items in i and j.
Vishal Saini
on 31 Mar 2018
Accepted Answer
More Answers (0)
Categories
Find more on Performance and Memory in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!