ita_read_comsol_csv

-bugfix: now import of solutions with multiple parameters works again
parent dda94227
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment