Passing 2 arguments to a command line function

4 Ansichten (letzte 30 Tage)
Ras
Ras am 25 Apr. 2011
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

Antworten (2)

Walter Roberson
Walter Roberson am 25 Apr. 2011
matlab -r "myfunction(1,1);quit"
  2 Kommentare
Ras
Ras am 26 Apr. 2011
Not working, I don't pass even the dos, it replies in the cmd line:
1) was unexpected at this time.
It has something to do with the comma that is not accepted.
Walter Roberson
Walter Roberson am 26 Apr. 2011
Which OS are you using?
Anyhow, try
matlab -r 'myfunction(1,1);quit'

Melden Sie sich an, um zu kommentieren.


Ras
Ras am 26 Apr. 2011
Same results as using "myfunction(1,1);quit"... Using windows XP professional

Kategorien

Mehr zu Entering Commands finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by