Hello everyone,
I got an issue while I was working with the run function. I currently use this function to lauch some Matlab scripts from another directory which is not in the matlab path e.g:
CheminData = 'D:.......' ;ScriptRun='Script2Run.m';FullPath2Script=[CheminData,'\',ScriptRun];run(FullPath2Script)
Sometimes these scripts have an output or more than one. The only way that I found to get the script outputs is by using the ans variable e.g
run(FullPath2Script)outputVariable=ans;
Is there another way to properly obtain the output from a script launched by the run function ?
thanks 4 reading
Best Answer