protected ErrorResult SyncRunCommand(MatlabCommand toRunCommand) { //SingleMatlabCommand toRunCommand = new SingleMatlabCommand(commandString); runCanceled = false; return(MatlabSyncProgram.RunMatlab(toRunCommand, true)); }
protected ErrorResult SyncRunMainScript() { CompositeMatlabCommand toRunCommand = new CompositeMatlabCommand(); toRunCommand.AddCommand(new SingleMatlabCommand("addpath('" + tempPath + "')")); toRunCommand.AddCommand(new SingleMatlabCommand("run('" + MatlabCommandBuilder.MainScriptFileName + "')")); runCanceled = false; return(MatlabSyncProgram.RunMatlab(toRunCommand, true)); }