Clear Filters
Clear Filters

running matlab files directly from external editor using cmd commands

2 views (last 30 days)
Hi all,
I am using Pspad for coding usually. Now, Pspad offers the option to use Matlab as an external compiler using the arguments
Compiler: C:\Program Files\MATLAB\R2017a\bin\win64\matlab.exe
parameters: -nosplash -nodesktop -nojvm -useStartupFolderPref -r "%DosDir%%Name%%Ext%"
default directory: C:\Program Files\MATLAB\R2017a\bin\win64
log file: %Name%.log
run after compilation: & pause
Using these parameters, I am able to start the Matlab in the minimum compiler version, however I get the following error
D:\Delft\SURFDR~1\MATLAB\Current\PROJEC~1\wind4Bladed.m
|
Error: Unexpected MATLAB operator.
I have played around with the options, however I am unable to find the right way that Matlab recognises the file and allows it to run. Any help on this topic is appreciated. The same settings apply to Emacs or any other editor, so I am guessing that someone would have used similar inputs to use their favourite editor
PS: I know the general methods of running Matlab files, so please don't comment on those lines.

Answers (0)

Categories

Find more on File Operations in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!