I am running a matlab file using -batch command on windows cmd.
At first, I type this on cmd
matlab -nosplash -nodesktop -minimize -r file_name
and I don't want matlab's command windows to show.
Then I type this
matlab -batch file_name
but the plot suddenly disappear.And i also try this
matlab -batch "file_name; pause( sec )"
but it only exsist for only a few seconds.
Is there any solution that I can directly get into matlab's command windows like this vedio
, or without losing my plot after I run command???( in win10 2020b)
Best Answer