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
13
Issues
13
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
9ae36692
Commit
9ae36692
authored
Feb 21, 2019
by
Markus Mueller-Trapet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get sampling rate depending on type of available data
parent
abf12e1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
kernel/DataAudio_IO/ita_readunv58.m
kernel/DataAudio_IO/ita_readunv58.m
+6
-1
No files found.
kernel/DataAudio_IO/ita_readunv58.m
View file @
9ae36692
...
...
@@ -49,7 +49,12 @@ channelUnits = cell(1,nDataSet);
nodes
=
zeros
(
nDataSet
,
1
);
switch
ds
.
abscissaUnitsLabel
case
's'
% data from B&K Pulse or other measurement systems
SamplingRate
=
round
(
1.
/
DataSet
{
1
}
.
dx
);
if
~
isempty
(
ds
.
dx
)
SamplingRate
=
1.
/
ds
.
dx
;
else
SamplingRate
=
median
(
1.
/
diff
(
unique
(
abscissa
)));
end
SamplingRate
=
round
(
SamplingRate
,
-
1
);
for
i
=
1
:
nDataSet
%Read the data into the variables
y
=
DataSet
{
i
}
.
measData
(:);
if
~
isempty
(
y
)
...
...
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