Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
toolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Institute of Technical Acoustics (ITA)
toolbox
Commits
bd19d426
Commit
bd19d426
authored
7 years ago
by
Markus Mueller-Trapet
Browse files
Options
Downloads
Patches
Plain Diff
minor changes
parent
18c00f1f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/RoomAcoustics/BuildingAcoustics/ita_soundInsulationIndexAirborne.m
+4
-1
4 additions, 1 deletion
...tics/BuildingAcoustics/ita_soundInsulationIndexAirborne.m
with
4 additions
and
1 deletion
applications/RoomAcoustics/BuildingAcoustics/ita_soundInsulationIndexAirborne.m
+
4
−
1
View file @
bd19d426
...
...
@@ -6,6 +6,8 @@ function varargout = ita_soundInsulationIndexAirborne(varargin)
% You can find the license for this m-file in the application folder.
% </ITA-Toolbox>
% re-implementation: Markus Mueller-Trapet (markus.mueller-trapet@nrc.ca)
% Date: June 2017
%% input parsing
sArgs
=
struct
(
'pos1_data'
,
'anything'
,
'bandsperoctave'
,
3
,
'freqVector'
,[],
'createPlot'
,
false
,
'type'
,
'ISO'
);
...
...
@@ -89,7 +91,7 @@ end
%% output
if
sArgs
.
createPlot
fgh
=
ita_plot_freq
(
data
);
plotResult
=
itaResult
([
10.
^
((
refCurve
+
soundReductionIndex
)
.
/
20
),
[
ones
(
sum
(
freq
<=
500
),
1
)
*
10.
^
(
soundReductionIndex
.
/
20
);
nan
(
sum
(
freq
>
500
),
1
)]],
freq
,
'freq'
);
plotResult
=
itaResult
([
[
nan
(
sum
(
freqVector
<
min
(
freq
)),
1
);
10.
^
((
refCurve
+
soundReductionIndex
)
.
/
20
)
;
nan
(
sum
(
freqVector
>
max
(
freq
)),
1
)]
,
[
ones
(
sum
(
freq
Vector
<=
500
),
1
)
*
10.
^
(
soundReductionIndex
.
/
20
);
nan
(
sum
(
freq
Vector
>
500
),
1
)]],
freq
Vector
,
'freq'
);
ita_plot_freq
(
plotResult
,
'figure_handle'
,
fgh
,
'axes_handle'
,
gca
,
'hold'
);
bar
(
gca
,
deficiencies
.
freqVector
,
deficiencies
.
freq
,
'hist'
);
[
maxDef
,
maxIdx
]
=
max
(
deficiencies
.
freq
);
...
...
@@ -99,6 +101,7 @@ if sArgs.createPlot
singleNumberString
=
[
outputStr
' = '
num2str
(
soundReductionIndex
)
'dB'
];
end
legend
({
'Sound transmission loss'
,
'Shifted reference curve'
,
singleNumberString
,[
'Deficiencies (sum: '
num2str
(
sum
(
deficiencies
.
freq
))
'dB, max: '
num2str
(
maxDef
)
'dB at '
num2str
(
deficiencies
.
freqVector
(
maxIdx
))
'Hz)'
]});
xlim
([
min
(
freq
)
max
(
freq
)]);
ylim
([
0
max
(
max
(
soundReduction
),
max
(
refCurve
)
+
soundReductionIndex
)
+
15
]);
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment