Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Institute of Technical Acoustics (ITA)
toolbox
Commits
1b139a0f
Commit
1b139a0f
authored
Aug 09, 2019
by
Philipp Schäfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ita_read_comsol_csv
-bugfix: now import of solutions with multiple parameters works again
parent
dda94227
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
applications/SoundFieldSimulation/Comsol/Import/ita_read_comsol_csv.m
.../SoundFieldSimulation/Comsol/Import/ita_read_comsol_csv.m
+7
-7
No files found.
applications/SoundFieldSimulation/Comsol/Import/ita_read_comsol_csv.m
View file @
1b139a0f
...
@@ -78,13 +78,13 @@ columnHeaders = char(metaData(end));
...
@@ -78,13 +78,13 @@ columnHeaders = char(metaData(end));
columnHeaders
=
strsplit
(
columnHeaders
(
3
:
end
),
','
);
columnHeaders
=
strsplit
(
columnHeaders
(
3
:
end
),
','
);
idxExtraParameter
=
~
contains
(
columnHeaders
,
'@'
)
&
~
strcmpi
(
columnHeaders
,
'x'
)
&
~
strcmpi
(
columnHeaders
,
'y'
)
&
~
strcmpi
(
columnHeaders
,
'z'
);
idxExtraParameter
=
~
contains
(
columnHeaders
,
'@'
)
&
~
strcmpi
(
columnHeaders
,
'x'
)
&
~
strcmpi
(
columnHeaders
,
'y'
)
&
~
strcmpi
(
columnHeaders
,
'z'
);
nMerges
=
0
;
nMerges
=
0
;
%
for idxMerge = find(idxExtraParameter)
for
idxMerge
=
find
(
idxExtraParameter
)
%
idxSource = idxMerge-nMerges;
idxSource
=
idxMerge
-
nMerges
;
%
idxTarget = idxSource-1;
idxTarget
=
idxSource
-
1
;
%
columnHeaders{idxTarget} = [columnHeaders{idxTarget} columnHeaders{idxSource}];
columnHeaders
{
idxTarget
}
=
[
columnHeaders
{
idxTarget
}
columnHeaders
{
idxSource
}];
%
columnHeaders(idxSource) = [];
columnHeaders
(
idxSource
)
=
[];
%
nMerges = nMerges+1;
nMerges
=
nMerges
+
1
;
%
end
end
%--Numeric Data---
%--Numeric Data---
try
try
...
...
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