Last change
on this file since 20498 was 20498, checked in by Mathieu Morlighem, 9 years ago |
CHG: done with Archive/19101-20495
|
File size:
744 bytes
|
Rev | Line | |
---|
[20498] | 1 | Index: ../trunk-jpl/src/m/inversions/MisfitDeinterlace.m
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/src/m/inversions/MisfitDeinterlace.m (revision 20447)
|
---|
| 4 | +++ ../trunk-jpl/src/m/inversions/MisfitDeinterlace.m (revision 20448)
|
---|
| 5 | @@ -1,21 +0,0 @@
|
---|
| 6 | -function Jstruct=MisfitDeinterlace(misfit,type)
|
---|
| 7 | -%MISFITDEINTERLACE - deinterlace misfits that are mixed together, using type.
|
---|
| 8 | -%
|
---|
| 9 | -% Usage:
|
---|
| 10 | -% Jstruct=MisfitDeinterlace(misfit,type)
|
---|
| 11 | -%
|
---|
| 12 | -% Example:
|
---|
| 13 | -% Jstruct=MisfitDeinterlace(md.results.stressbalance.J,md.fit)
|
---|
| 14 | -%
|
---|
| 15 | -%
|
---|
| 16 | -Jstruct=struct();
|
---|
| 17 | -
|
---|
| 18 | -count=1;
|
---|
| 19 | -for i=0:max(type),
|
---|
| 20 | - pos=find(type==i);
|
---|
| 21 | - if length(pos),
|
---|
| 22 | - Jstruct(count).type=i;
|
---|
| 23 | - Jstruct(count).J=misfit(pos);
|
---|
| 24 | - count=count+1;
|
---|
| 25 | - end
|
---|
| 26 | -end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.