Passing 2 arguments to a command line function
Afficher commentaires plus anciens
In my university we have Matlab 7.0 (R14), I would like to run schedule task running some matlab functions.
From cmd line I type:
matlab -r myfunction(1,1)
The results are
>> myfunction(1
??? myfunction(1
|
Error: Incomplete or misformed expression or statement
Réponses (2)
Walter Roberson
le 25 Avr 2011
matlab -r "myfunction(1,1);quit"
2 commentaires
Ras
le 26 Avr 2011
Walter Roberson
le 26 Avr 2011
Which OS are you using?
Anyhow, try
matlab -r 'myfunction(1,1);quit'
Ras
le 26 Avr 2011
0 votes
Catégories
En savoir plus sur Entering Commands dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!