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();
        }
Example #2
0
        public static ErrorResult RunMatlab(MatlabCommand matlabCommand, bool silentMode)
        {
            string commandString = matlabCommand.ToString();

            matlab.Visible = 0;
            string ans = matlab.Execute(commandString);

            return(new ErrorResult());
        }