Skip to content
Snippets Groups Projects

Commented out the calls to Matlab by reading the file, finding the calls by...

Merged Hock, Martin requested to merge fix/commentcalltoplotIDinexport into master
1 file
+ 19
0
Compare changes
  • Side-by-side
  • Inline
+ 19
0
@@ -74,8 +74,27 @@ end
end%if
copyfile(FileNameAndLocation,RemotePath);
storagePaths{i} = RemotePath;
% Comment out call to Publish in Scriptfile
switch type
case 'script'
scripttext = regexp(fileread(RemotePath),'\n','split');
commentlines = find(contains(scripttext,'PlotID.'));
scriptfid= fopen(RemotePath,'w');
for j=1:length(scripttext)
if ismember(j,commentlines)
fprintf(scriptfid,'%s %s\n','%',scripttext{j});
else
fprintf(scriptfid,'%s\n',scripttext{j});
end
end
fclose(scriptfid);
end
end %for
status = true;
msg =([type, ' successfully published']);
% catch
% status = false;
Loading