public void RunMatlab(MatlabCommand matlabCommand, bool silentMode) { string arguemntString = " -r \"" + matlabCommand.ToString() + "\""; Process process = new Process(); process.StartInfo.Arguments = arguemntString; process.StartInfo.FileName = programPath; process.Start(); }
public static ErrorResult RunMatlab(MatlabCommand matlabCommand, bool silentMode) { string commandString = matlabCommand.ToString(); matlab.Visible = 0; string ans = matlab.Execute(commandString); return(new ErrorResult()); }