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...
Pipeline #669993 passed
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment