NO MATLAB command specified

조회 수: 5 (최근 30일)
Javier Naranjo
Javier Naranjo 2017년 10월 17일
댓글: Jan 2017년 10월 19일
Hello everybody,
I am running this command from the Linux Console
sudo ./matlab -r < fol1/hello.m -nosplash -nodesktop
And I get this output from the Linux Console:
No MATLAB command specified
I do not have any idea why this happens.

채택된 답변

Sanjana Ramakrishnan
Sanjana Ramakrishnan 2017년 10월 19일
Since you are using -r flag with matlab command, you would not require the pipe symbol to invoke the 'hello.m'. Modifying the command as below might help resolve the issue:
>>sudo ./matlab -r fol1/hello.m -nosplash -nodesktop
Refer the below link:
  댓글 수: 2
Javier Naranjo
Javier Naranjo 2017년 10월 19일
I solved it with
sudo ./matlab -nosplash -nodesktop -nodisplay -r "cd('~/fol1'); hello;exit"
Jan 2017년 10월 19일
@Sanjana: I made the same mistake yesterday: The -r flag expects working Matlab code, not the path of a function.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)


Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by