source:
issm/trunk-jpl/src/m/contrib/chenggong/dataprocessing/rescalegradientNan.m
Last change on this file was 26975, checked in by , 3 years ago | |
---|---|
File size: 209 bytes |
Rev | Line | |
---|---|---|
[26975] | 1 | % function to replace Nan by 0 in J, then rescale with the mass matrix |
2 | % | |
3 | function J = rescalegradientNan(md, unscaledJ) | |
4 | ||
5 | nanflag = isnan(unscaledJ); | |
6 | unscaledJ(nanflag) = 0; | |
7 | J = rescalegradient(md, unscaledJ); |
Note:
See TracBrowser
for help on using the repository browser.