Integer Operand Warning when casting output of RegionProps
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Conway's Game of Life dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!