When I try running a code I have in MATLAB, I get the following error:
Attempted to access labels(146.864,226.509); index must be a positive
integer or logical.
Error in abc (line 11)
l(y(i),x(i))=1;
The points are set to be chosen interactively. But, is it the points that should be an integer? I tried casting the points y(i), x(i) to int8, but didn't work. Or, maybe I'm using it wrong?
How can I solve the error above?
Thanks.