source: trunk/src/transform_field/sub_field.m @ 622

Last change on this file since 622 was 519, checked in by sommeria, 12 years ago

add sub_field to transform dir

File size: 834 bytes
Line 
1%'sub_field': combines two input fields
2%
3% the two fields are subtstracted when of the same nature (scalar or
4% vector), if the coordinates do not coincide, the second field is
5% interpolated on the cooridintes of the first one
6%
7% when scalar and vectors are combined, the fields are just merged in a single matlab structure for common visualisation
8%-----------------------------------------------------------------------
9% function SubData=sub_field(Field,XmlData,Field_1)
10%
11% OUPUT:
12% SubData: structure representing the resulting field
13%
14% INPUT:
15% Field: matlab structure representing the first field
16% Field_1:matlab structure representing the second field
17
18function SubData=sub_field(Field,XmlData,Field_1)
19if exist('Field_1','var')
20SubData=sub_field(Field,XmlData,Field_1);
21else
22    SubData=[];
23end
Note: See TracBrowser for help on using the repository browser.