Skip to content
Snippets Groups Projects
Commit 72784fbe authored by Lemmer, Jan's avatar Lemmer, Jan
Browse files

Add string check for matlab filename

parent d3194736
No related branches found
No related tags found
2 merge requests!43Implements #73, cleans up example file,,!34Add string check for matlab filename
Pipeline #591981 passed
...@@ -38,13 +38,17 @@ if ~iscell(DataPaths) ...@@ -38,13 +38,17 @@ if ~iscell(DataPaths)
DataPaths = {DataPaths}; %Cell array DataPaths = {DataPaths}; %Cell array
end end
% strings will cause problems, we therfore use chars
for i=1:numel(DataPaths) for i=1:numel(DataPaths)
if isstring(DataPaths{i}) if isstring(DataPaths{i})
% strings will cause problems
DataPaths{i} = char(DataPaths{i}); DataPaths{i} = char(DataPaths{i});
end end
end end
if isstring(scriptPath)
scriptPath = char(scriptPath);
end
%catch multiple figures in fig %catch multiple figures in fig
if numel(figure) > 1 if numel(figure) > 1
figure = figure(1); figure = figure(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment