Passing 2 arguments to a command line function
이전 댓글 표시
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
답변 (2개)
Walter Roberson
2011년 4월 25일
matlab -r "myfunction(1,1);quit"
댓글 수: 2
Ras
2011년 4월 26일
Walter Roberson
2011년 4월 26일
Which OS are you using?
Anyhow, try
matlab -r 'myfunction(1,1);quit'
카테고리
도움말 센터 및 File Exchange에서 Entering Commands에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!