Bat file to run MATLAB code from Notepad ++
I want to write a file .bat
that when I press the start button on Notepad ++, it launches my matlab code via the command line
I wrote a simple batch file to run specific code (test.m)
How do I transfer other files via the Notepad ++ launch button to my batch file?
I would also like to evaluate other solutions.
My code:
"C:\Program Files\MATLAB\R2014b\bin\matlab.exe" -nodisplay -nosplash -nodesktop -r "; run('D:\test.m');"
+3
source to share
1 answer
In this case, I would not use the CMD command, but rather a batch file that launches certain parts of your program. If I understand you correctly, you want to start the MATLAB program when you click on the icon and also in notepad ++. I would do the following.
Right click on the program, select properties, then change the target string to
"[Notepad++ Target Path Here]", "C:\Program Files\MATLAB\R2014b\bin\matlab.exe" -nodisplay -nosplash -nodesktop -r "; run('D:\test.m');"
This should run both programs
Hope this helps!
0
source to share