Commit 4fe923c0 authored by Mueller-Trapet's avatar Mueller-Trapet

minor changes to get rid of code warnings

parent 4fce177d
...@@ -114,7 +114,7 @@ classdef itaMSTF < itaMSPlaybackRecord ...@@ -114,7 +114,7 @@ classdef itaMSTF < itaMSPlaybackRecord
fieldName = fieldnames(rmfield(this.saveobj,'dateSaved')); fieldName = fieldnames(rmfield(this.saveobj,'dateSaved'));
end end
for ind = 1:numel(fieldName); for ind = 1:numel(fieldName)
try try
this.(fieldName{ind}) = varargin{1}.(fieldName{ind}); this.(fieldName{ind}) = varargin{1}.(fieldName{ind});
catch errmsg catch errmsg
...@@ -371,11 +371,10 @@ classdef itaMSTF < itaMSPlaybackRecord ...@@ -371,11 +371,10 @@ classdef itaMSTF < itaMSPlaybackRecord
%% sweep rate from analytic calculation, only using sweep parameters / PDI %% sweep rate from analytic calculation, only using sweep parameters / PDI
nSamples = ita_nSamples( this.fftDegree ); nSamples = ita_nSamples( this.fftDegree );
finalFreqRange = this.finalFreqRange;
% MMT: use nSamples-1 here to be conform with sweep calculation % MMT: use nSamples-1 here to be conform with sweep calculation
% based on timeVector and chirp function % based on timeVector and chirp function
finalExcitationLength = (nSamples-1)/this.samplingRate - this.stopMargin; finalExcitationLength = (nSamples-1)/this.samplingRate - this.stopMargin;
sweepRate(1) = log2(finalFreqRange(2)/finalFreqRange(1))/finalExcitationLength; sweepRate(1) = log2(this.finalFreqRange(2)/this.finalFreqRange(1))/finalExcitationLength;
%% sweep rate of analysis of excitation signal %% sweep rate of analysis of excitation signal
sweepRate(2) = ita_sweep_rate(this.raw_excitation,[2000 this.samplingRate/3]); sweepRate(2) = ita_sweep_rate(this.raw_excitation,[2000 this.samplingRate/3]);
...@@ -563,7 +562,7 @@ classdef itaMSTF < itaMSPlaybackRecord ...@@ -563,7 +562,7 @@ classdef itaMSTF < itaMSPlaybackRecord
if this.minimumphasedeconvolution if this.minimumphasedeconvolution
% get minimumphase part of deconvolution, neglect % get minimumphase part of deconvolution, neglect
% all-pass component % all-pass component
[this.mCompensation, allpass_component] = ita_invert_spk_regularization(ita_extend_dat(this.raw_excitation,this.final_excitation.nSamples*factor),[min(this.freqRange(:)) max(this.freqRange(:))],'filter',this.filter); [this.mCompensation, allpass_component] = ita_invert_spk_regularization(ita_extend_dat(this.raw_excitation,this.final_excitation.nSamples*factor),[min(this.freqRange(:)) max(this.freqRange(:))],'filter',this.filter); %#ok<ASGLU>
else else
this.mCompensation = ita_invert_spk_regularization(ita_extend_dat(this.raw_excitation,this.final_excitation.nSamples*factor),[min(this.freqRange(:)) max(this.freqRange(:))],'filter',this.filter); this.mCompensation = ita_invert_spk_regularization(ita_extend_dat(this.raw_excitation,this.final_excitation.nSamples*factor),[min(this.freqRange(:)) max(this.freqRange(:))],'filter',this.filter);
end end
...@@ -619,7 +618,7 @@ classdef itaMSTF < itaMSPlaybackRecord ...@@ -619,7 +618,7 @@ classdef itaMSTF < itaMSPlaybackRecord
token = this.(list{idx}); token = this.(list{idx});
if isempty(token) || isa(token,'itaSuper') if isempty(token) || isa(token,'itaSuper')
continue; continue;
end; end
if ischar(token) if ischar(token)
token = ['''' token '''']; token = ['''' token ''''];
...@@ -630,7 +629,7 @@ classdef itaMSTF < itaMSPlaybackRecord ...@@ -630,7 +629,7 @@ classdef itaMSTF < itaMSPlaybackRecord
end end
else else
error([upper(mfilename) '.commandline: What kind of field value is this?']); error([upper(mfilename) '.commandline: What kind of field value is this?']);
end; end
str = [str '''' list{idx} '''' ',' token ]; str = [str '''' list{idx} '''' ',' token ];
if idx < numel(list) if idx < numel(list)
...@@ -643,7 +642,7 @@ classdef itaMSTF < itaMSPlaybackRecord ...@@ -643,7 +642,7 @@ classdef itaMSTF < itaMSPlaybackRecord
%% Hidden methods %% Hidden methods
methods(Hidden = true) methods(Hidden = true)
function display(this) function display(this) %#ok<DISPLAY>
this.excitation; %pre-init this.excitation; %pre-init
% Begin Display Start Line % Begin Display Start Line
......
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