indexing - Why is find in matlab returning double values -
the find function within matlab returns indices given locigal argument evaluates true.
i'm wondering, why return values (for indices) of type double , not uint32 or uint64 biggest index matrix be.
strange thing might connected here is, running
[~,max_num_of_elem]=computer returns maximal number of elements allowed matrix in variable max_num_of_elem of type double.
i can guess, because wide range of functions support double. run
setdiff(methods('double'), methods('uint32')) to see functions defined double , not uint32 on version of matlab.
also there overflow issue integer data types in matlab can introduce hard detect bugs.
Comments
Post a Comment