Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
12
Issues
12
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
4
Merge Requests
4
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Institute of Technical Acoustics (ITA)
toolbox
Commits
5a5a2d0e
Commit
5a5a2d0e
authored
Jul 06, 2017
by
Markus Mueller-Trapet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor bugfix for ANSI ticks
parent
3deb7428
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
kernel/PlotRoutines/Plottools/ita_plottools_ticks.m
kernel/PlotRoutines/Plottools/ita_plottools_ticks.m
+6
-9
No files found.
kernel/PlotRoutines/Plottools/ita_plottools_ticks.m
View file @
5a5a2d0e
...
...
@@ -21,7 +21,7 @@ function varargout = ita_plottools_ticks(varargin)
%% Get ITA Toolbox preferences and Function String
verboseMode
=
ita_preferences
(
'verboseMode'
);
%#ok<NASGU> Use to show additional information for the user
thisFuncStr
=
[
upper
(
mfilename
)
':'
];
%#ok<NASGU> Use to show warnings or infos in this functions
thisFuncStr
=
[
upper
(
mfilename
)
':'
];
%% Initialization and Input Parsing
narginchk
(
1
,
1
);
...
...
@@ -43,13 +43,12 @@ switch(lower(mode_str))
xlabel_vec
=
{
''
'2k'
''
'4k'
''
'6k'
''
'8k'
''
'10k'
''
'12k'
''
'14k'
''
'16k'
''
'18k'
''
'20k'
''
'22k'
};
xtick_vec
=
[
1000
2000
3000
4000
5000
6000
7000
8000
9000
10000
11000
12000
13000
14000
15000
16000
17000
18000
19000
20000
21000
22000
];
case
{
'ansi'
}
freq
=
ita_
ansi
_center_frequencies
;
freq
=
ita_
ANSI
_center_frequencies
;
idxForKilo
=
freq
>=
1000
;
freqFormated
=
freq
;
freqFormated
(
idxForKilo
)
=
freqFormated
(
idxForKilo
)
/
1000
;
freqFormated
(
idxForKilo
)
=
freqFormated
(
idxForKilo
)
/
1000
;
ansiLabel
=
num2str
(
freqFormated
', '
%1.1f');
...
...
@@ -58,18 +57,16 @@ switch(lower(mode_str))
tmp
=
ansiLabel
(
iLine
,:);
tmp
=
strrep
(
tmp
,
'.0'
,
''
);
if
idxForKilo
(
iLine
)
tmp
=
[
tmp
'
k'
];
tmp
=
[
tmp
'k'
];
end
labelCell
{
iLine
}
=
tmp
;
end
xlabel_vec
=
labelCell
;
xtick_vec
=
freq
;
xtick_vec
=
freq
;
otherwise
error
([
thisFunStr
'What mode should this be?'
])
error
([
thisFun
c
Str
'What mode should this be?'
])
end
%% Find output parameters
...
...
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