How to run MATLAB on CMD?

I try to run the file directly on CMD, and not on the MATLAB terminal, but I'm starting to believe that this does not happen on Windows. I found something similar, but still not what I need: .m

    matlab -nodisplay -nosplash -nodesktop -r "run whatever.m"

It launches a new screen without using only its own MATLAB terminal, instead of just running CMD code such as R, mySQL and other programs.

I'm actually trying to run MATLAB code in Java. I know that there is a way to create .jar, .dll, .exe, ... from a file , but I need to do it in a different way. My idea was to get the results that MATLAB throws at CMD, but it only runs MATLAB, runs the code, and I don't get any results in java using . This reads everything that goes to the console, but since it is a MATLAB console, it is impossible to get any results. This is why I need a way to run it directly on the CMD. .mProcessBuilder

+4
source share
1 answer

Java Matlab, . matlabcontrol . - undocumentedmatlab Matlab.

0

All Articles