Commit 08c59eb4 authored by HBR's avatar HBR

pass on arguments in plot Fctn itaPZ

parent 6ba21c2a
...@@ -1342,12 +1342,9 @@ classdef itaHRTF < itaAudio ...@@ -1342,12 +1342,9 @@ classdef itaHRTF < itaAudio
[this,sArgs]= ita_parse_arguments(sArgs,varargin); [this,sArgs]= ita_parse_arguments(sArgs,varargin);
ah = sArgs.axes_handle; ah = sArgs.axes_handle;
phiC_deg = uniquetol(round(this.phi_UniqueDeg,1),0.05); %round to 0.5Deg
thetaC_deg = uniquetol(round(this.theta_UniqueDeg,1),0.05); phiC_deg = unique(round(this.phi_UniqueDeg *2)/2);
thetaC_deg = unique(round(this.theta_UniqueDeg *2)/2);
%hbr: changed to round to 1 decimal in deg, seems more stable
%phiC_deg = rad2deg(unique(round(this.phi_Unique*100)/100));
%thetaC_deg = rad2deg(unique(round(this.theta_Unique*100)/100));
% create slice % create slice
if numel(thetaC_deg)>1 && numel( phiC_deg)>1 if numel(thetaC_deg)>1 && numel( phiC_deg)>1
...@@ -1367,11 +1364,11 @@ classdef itaHRTF < itaAudio ...@@ -1367,11 +1364,11 @@ classdef itaHRTF < itaAudio
% multi defined coordinates % multi defined coordinates
if numel(phiC_deg)<thisC.dirCoord.nPoints && numel(thetaC_deg) ==1 if numel(phiC_deg)<thisC.dirCoord.nPoints && numel(thetaC_deg) ==1
ita_verbose_info(' Coordinates are not unique!', 0); ita_verbose_info(' Coordinates are not unique!', 0);
[~,ia] = uniquetol(thisC.dirCoord.phi,'stable'); [~,ia] = unique(thisC.dirCoord.phi,'stable');
thisC = thisC.direction(ia); thisC = thisC.direction(ia);
elseif numel(thetaC_deg)<thisC.dirCoord.nPoints && numel(phiC_deg) ==1 elseif numel(thetaC_deg)<thisC.dirCoord.nPoints && numel(phiC_deg) ==1
ita_verbose_info(' Coordinates are not unique!', 0); ita_verbose_info(' Coordinates are not unique!', 0);
[~,ia] = uniquetol(thisC.dirCoord.theta,'stable'); [~,ia] = unique(thisC.dirCoord.theta,'stable');
thisC = thisC.direction(ia); thisC = thisC.direction(ia);
end end
......
...@@ -237,10 +237,10 @@ classdef itaPZ ...@@ -237,10 +237,10 @@ classdef itaPZ
% res = (resp+d+e*s) .* exp(1i*-2*pi*value*ddelay); % res = (resp+d+e*s) .* exp(1i*-2*pi*value*ddelay);
end end
function plot_spk(this) function plot_spk(this,varargin)
% plot spectrum (freq) % plot spectrum (freq)
res = itaAudioAnalyticRational(this); res = itaAudioAnalyticRational(this);
res.plot_spk; res.plot_spk(varargin{:});
end end
function res = res_mixed_poles(this) function res = res_mixed_poles(this)
%pdi implementation using conjugate complex pole pairs %pdi implementation using conjugate complex pole pairs
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment