source:
issm/trunk-jpl/src/m/contrib/chenggong/dataprocessing/rescalegradientNan.m@
26975
Last change on this file since 26975 was 26975, checked in by , 3 years ago | |
---|---|
File size: 209 bytes |
Line | |
---|---|
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.