MATLAB: Error in attached program

minutiae

Index exceeds matrix dimensions.
Error in ext_vein (line 381) dist_m = dist2(minutiae(:,1:2), minutiae(:,1:2));
Error in build_db (line 22) traindata{id_train}=ext_vein(X,1);

Best Answer

When minu_count is 0 then t_minuae will be left as [] and so will not have columns 1:2 to index into.
Related Question