Skip to content
Snippets Groups Projects
Commit 296ed1b6 authored by M. Hock's avatar M. Hock
Browse files

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

Commented out the calls to Matlab by reading the file, finding the calls by line, and adding a '%' on a line by line basis.
Closes #117
parent de0fe5c2
No related branches found
No related tags found
1 merge request!75Commented out the calls to Matlab by reading the file, finding the calls by...
Checking pipeline status
...@@ -74,8 +74,27 @@ end ...@@ -74,8 +74,27 @@ end
end%if end%if
copyfile(FileNameAndLocation,RemotePath); copyfile(FileNameAndLocation,RemotePath);
storagePaths{i} = 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 end %for
status = true; status = true;
msg =([type, ' successfully published']); msg =([type, ' successfully published']);
% catch % catch
% status = false; % status = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment