Matlab from Command promt
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
john birt
le 24 Mar 2012
Réponse apportée : Bibhav Poudel
le 11 Déc 2019
So I have a matlab function
function F = myfun5(x)
F = x+5;
exit;
and when I run this from the Windows Command Line
matlab nosplash -r myfun5(3) -logfile c:\temp\logfile
It all works, but the log file is empty, it does not include the answer
0 commentaires
Réponse acceptée
Oleg Komarov
le 24 Mar 2012
matlab -nosplash -nodesktop -minimize -r "a = myfun5(3), exit" -logfile C:\logfile.txt
where
function F = myfun5(x)
F = x+5;
end
otherwise it exits before returning the value to the cmd window.
0 commentaires
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!