source: issm/trunk-jpl/src/m/contrib/chenggong/dataprocessing/rescalegradientNan.m@ 26975

Last change on this file since 26975 was 26975, checked in by Cheng Gong, 3 years ago

add post-processing codes

File size: 209 bytes
Line 
1% function to replace Nan by 0 in J, then rescale with the mass matrix
2%
3function J = rescalegradientNan(md, unscaledJ)
4
5nanflag = isnan(unscaledJ);
6unscaledJ(nanflag) = 0;
7J = rescalegradient(md, unscaledJ);
Note: See TracBrowser for help on using the repository browser.