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

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -