예제 #1
0
        protected ErrorResult SyncRunCommand(MatlabCommand toRunCommand)
        {
            //SingleMatlabCommand toRunCommand = new SingleMatlabCommand(commandString);
            runCanceled = false;

            return(MatlabSyncProgram.RunMatlab(toRunCommand, true));
        }
예제 #2
0
        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));
        }