Skip to content
Snippets Groups Projects

Add string check for matlab filename

Merged Lemmer, Jan requested to merge 88-publish-fehler-beim-erzeugen-der-datei-kopie into development
1 file
+ 5
1
Compare changes
  • Side-by-side
  • Inline
+ 5
1
@@ -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);
Loading