It would be good to add a line to check for NaN values in the VBA_orth function
Something like
if nonzeros( isnan(A) )
error('your matrix should not include any NaN value');
end
at the start of the script because otherwise any parasite NaN value will create a column full of NaN in the output possibly messing with other scripts afterwards.
It would be good to add a line to check for NaN values in the VBA_orth function Something like
if nonzeros( isnan(A) ) error('your matrix should not include any NaN value'); end
at the start of the script because otherwise any parasite NaN value will create a column full of NaN in the output possibly messing with other scripts afterwards.