Changeset 880 for trunk/src/transform_field/phys_polar.m
- Timestamp:
- Mar 4, 2015, 12:01:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/transform_field/phys_polar.m
r810 r880 95 95 %transform first field to cartesian phys coordiantes 96 96 if ~isempty(Calib{1}) 97 DataOut=phys_1(Data ,Calib{1},origin_xy,radius_offset,angle_offset,angle_scale);97 DataOut=phys_1(DataIn,Calib{1},origin_xy,radius_offset,angle_offset,angle_scale); 98 98 %case of images or scalar 99 if isfield(Data ,'A')&isfield(Data,'Coord_x')&~isempty(Data.Coord_x) & isfield(Data,'Coord_y')&...100 ~isempty(Data .Coord_y)&length(Data.A)>199 if isfield(DataIn,'A')&isfield(DataIn,'Coord_x')&~isempty(DataIn.Coord_x) & isfield(DataIn,'Coord_y')&... 100 ~isempty(DataIn.Coord_y)&length(DataIn.A)>1 101 101 iscalar=1; 102 A{1}=Data .A;102 A{1}=DataIn.A; 103 103 end 104 104 %transform of X,Y coordinates for vector fields 105 if isfield(Data ,'ZIndex')&~isempty(Data.ZIndex)106 ZIndex=Data .ZIndex;105 if isfield(DataIn,'ZIndex')&~isempty(DataIn.ZIndex) 106 ZIndex=DataIn.ZIndex; 107 107 else 108 108 ZIndex=0;
Note: See TracChangeset
for help on using the changeset viewer.