MBB-team / VBA-toolbox

The VBA toolbox
GNU General Public License v3.0
129 stars 67 forks source link

VBA_orth checking for NaN values #64

Closed NicolasClairis closed 5 years ago

NicolasClairis commented 5 years ago

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.

lionel-rigoux commented 5 years ago

Fixed by 072682f74f885e9c79dac42573d0e32546a05606

NicolasClairis commented 5 years ago

Thanks!