FF plots: doc updates and some error/warnings added
This commit is contained in:
parent
8359b9aeaf
commit
863e89f0bb
@ -20,7 +20,7 @@ function h = plotFF3D(nf2ff,varargin)
|
|||||||
%
|
%
|
||||||
% see examples/antennas/infDipol.m
|
% see examples/antennas/infDipol.m
|
||||||
%
|
%
|
||||||
% See also CalcNF2FF, plotFFdB
|
% See also CalcNF2FF, plotFFdB, polarFF
|
||||||
%
|
%
|
||||||
% openEMS matlab interface
|
% openEMS matlab interface
|
||||||
% -----------------------
|
% -----------------------
|
||||||
@ -38,6 +38,8 @@ for n=1:2:numel(varargin)
|
|||||||
freq_index = varargin{n+1};
|
freq_index = varargin{n+1};
|
||||||
elseif (strcmp(varargin{n},'normalize')==1);
|
elseif (strcmp(varargin{n},'normalize')==1);
|
||||||
normalize = varargin{n+1};
|
normalize = varargin{n+1};
|
||||||
|
else
|
||||||
|
warning('openEMS:plotFF3D',['unknown argument key: ''' varargin{n} '''']);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ function h = plotFFdB(nf2ff,varargin)
|
|||||||
%
|
%
|
||||||
% see examples/NF2FF/infDipol.m
|
% see examples/NF2FF/infDipol.m
|
||||||
%
|
%
|
||||||
% See also CalcNF2FF, plotFF3D
|
% See also CalcNF2FF, plotFF3D, polarFF
|
||||||
%
|
%
|
||||||
% openEMS matlab interface
|
% openEMS matlab interface
|
||||||
% -----------------------
|
% -----------------------
|
||||||
@ -38,6 +38,8 @@ for n=1:2:numel(varargin)
|
|||||||
xaxis = varargin{n+1};
|
xaxis = varargin{n+1};
|
||||||
elseif (strcmp(varargin{n},'param')==1);
|
elseif (strcmp(varargin{n},'param')==1);
|
||||||
param = varargin{n+1};
|
param = varargin{n+1};
|
||||||
|
else
|
||||||
|
warning('openEMS:plotFFdB',['unknown argument key: ''' varargin{n} '''']);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -54,6 +56,8 @@ elseif (strcmp(xaxis,'phi')==1);
|
|||||||
yax = D_log(param,:);
|
yax = D_log(param,:);
|
||||||
parval = nf2ff.theta(param);
|
parval = nf2ff.theta(param);
|
||||||
param = 'theta';
|
param = 'theta';
|
||||||
|
else
|
||||||
|
error('openEMS:plotFFdB','unknown parameter to ''xaxis''');
|
||||||
end
|
end
|
||||||
|
|
||||||
%figure
|
%figure
|
||||||
|
@ -7,7 +7,7 @@ function h = polarFF(nf2ff,varargin)
|
|||||||
% nf2ff: output of CalcNF2FF
|
% nf2ff: output of CalcNF2FF
|
||||||
%
|
%
|
||||||
% variable input:
|
% variable input:
|
||||||
% 'freq_index': - use element from cell array
|
% 'freq_index': - use the given frequency index, see nf2ff.freq
|
||||||
% - default is 1
|
% - default is 1
|
||||||
% 'xaxis': - 'phi' (default) or 'theta'
|
% 'xaxis': - 'phi' (default) or 'theta'
|
||||||
% 'param': - array positions of parametric plot
|
% 'param': - array positions of parametric plot
|
||||||
@ -21,6 +21,7 @@ function h = polarFF(nf2ff,varargin)
|
|||||||
% - values below minimum will be clamped
|
% - values below minimum will be clamped
|
||||||
% - default is -20
|
% - default is -20
|
||||||
% 'xtics': - set the number of tics for polar grid
|
% 'xtics': - set the number of tics for polar grid
|
||||||
|
% - default is 5
|
||||||
%
|
%
|
||||||
% example:
|
% example:
|
||||||
% polarFF(nf2ff, 'freq_index', 2, ...
|
% polarFF(nf2ff, 'freq_index', 2, ...
|
||||||
@ -61,6 +62,8 @@ for n=1:2:numel(varargin)
|
|||||||
logscale = varargin{n+1};
|
logscale = varargin{n+1};
|
||||||
elseif (strcmp(varargin{n},'xtics')==1);
|
elseif (strcmp(varargin{n},'xtics')==1);
|
||||||
xtics = varargin{n+1};
|
xtics = varargin{n+1};
|
||||||
|
else
|
||||||
|
warning('openEMS:polarFF',['unknown argument key: ''' varargin{n} '''']);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -109,6 +112,8 @@ elseif (strcmp(xaxis,'phi')==1);
|
|||||||
yax = E_far(param,:)';
|
yax = E_far(param,:)';
|
||||||
parval = nf2ff.theta(param);
|
parval = nf2ff.theta(param);
|
||||||
param = 'theta';
|
param = 'theta';
|
||||||
|
else
|
||||||
|
error('openEMS:polarFF','unknown parameter to ''xaxis''');
|
||||||
end
|
end
|
||||||
|
|
||||||
if ~isempty(logscale)
|
if ~isempty(logscale)
|
||||||
|
Loading…
Reference in New Issue
Block a user