Integer Operand Warning when casting output of RegionProps
Show older comments
So I am getting the rather common "Integer operands are required for colon operator when used as index" warning, however it is triggering on code that doesn't even use the colon operator.
It triggers on the second line of the code below:
stats = regionprops(double(thisregion),'boundingbox');
bnds = stats.BoundingBox;
Furthermore, the warning is flagged twice on this line, so I am wondering if something is wrong internal to a function? Is there something I can do to fix this, as the code is within a loop so the warning messages cause a serious slowdown.
Accepted Answer
More Answers (0)
Categories
Find more on Conway's Game of Life in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!