Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
toolbox
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
7
Issues
7
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
Security & Compliance
Security & Compliance
Dependency List
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Institute of Technical Acoustics (ITA)
toolbox
Commits
4fe923c0
Commit
4fe923c0
authored
May 12, 2017
by
Mueller-Trapet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes to get rid of code warnings
parent
4fce177d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
applications/Measurement/ClassStuff/@itaMSTF/itaMSTF.m
applications/Measurement/ClassStuff/@itaMSTF/itaMSTF.m
+6
-7
No files found.
applications/Measurement/ClassStuff/@itaMSTF/itaMSTF.m
View file @
4fe923c0
...
...
@@ -114,7 +114,7 @@ classdef itaMSTF < itaMSPlaybackRecord
fieldName
=
fieldnames
(
rmfield
(
this
.
saveobj
,
'dateSaved'
));
end
for
ind
=
1
:
numel
(
fieldName
)
;
for
ind
=
1
:
numel
(
fieldName
)
try
this
.
(
fieldName
{
ind
})
=
varargin
{
1
}
.
(
fieldName
{
ind
});
catch
errmsg
...
...
@@ -371,11 +371,10 @@ classdef itaMSTF < itaMSPlaybackRecord
%% sweep rate from analytic calculation, only using sweep parameters / PDI
nSamples
=
ita_nSamples
(
this
.
fftDegree
);
finalFreqRange
=
this
.
finalFreqRange
;
% MMT: use nSamples-1 here to be conform with sweep calculation
% based on timeVector and chirp function
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
sweepRate
(
2
)
=
ita_sweep_rate
(
this
.
raw_excitation
,[
2000
this
.
samplingRate
/
3
]);
...
...
@@ -563,7 +562,7 @@ classdef itaMSTF < itaMSPlaybackRecord
if
this
.
minimumphasedeconvolution
% get minimumphase part of deconvolution, neglect
% 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
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
...
...
@@ -619,7 +618,7 @@ classdef itaMSTF < itaMSPlaybackRecord
token
=
this
.
(
list
{
idx
});
if
isempty
(
token
)
||
isa
(
token
,
'itaSuper'
)
continue
;
end
;
end
if
ischar
(
token
)
token
=
[
'
''
'
token
'
''
'
];
...
...
@@ -630,7 +629,7 @@ classdef itaMSTF < itaMSPlaybackRecord
end
else
error
([
upper
(
mfilename
)
'.commandline: What kind of field value is this?'
]);
end
;
end
str
=
[
str
'
''
'
list
{
idx
}
'
''
'
','
token
];
if
idx
<
numel
(
list
)
...
...
@@ -643,7 +642,7 @@ classdef itaMSTF < itaMSPlaybackRecord
%% Hidden methods
methods
(
Hidden
=
true
)
function
display
(
this
)
function
display
(
this
)
%#ok<DISPLAY>
this
.
excitation
;
%pre-init
% Begin Display Start Line
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment