"BILAL USMANI" <bausmani82@yahoo.com> wrote in message <kg31nr$8kv$1@newscl01ah.mathworks.com>...
> But this is highly inefficient, espicially when I have the order of Itot as 1000 by 24523210. Is there an efficient way to do this?
Mex implementation:
http://www.mathworks.com/matlabcentral/fileexchange/24641-vectorized-find-with-first-option/content/findfirst/findfirst.m
Bruno
> But this is highly inefficient, espicially when I have the order of Itot as 1000 by 24523210. Is there an efficient way to do this?
Mex implementation:
http://www.mathworks.com/matlabcentral/fileexchange/24641-vectorized-find-with-first-option/content/findfirst/findfirst.m
Bruno