"not recognized as an internal or external command, operable program or batch file"

조회 수: 38 (최근 30일)
I ran
clear all
pp=gcp('nocreate');
[~,numproc]=system('nproc','-echo');
numproc=str2double(numproc)-1;
it turns on Matlab 2019a but I got a following error message at 2019b
"'nproc' is not recognized as an internal or external command,
operable program or batch file."

답변 (1개)

Dinesh Yadav
Dinesh Yadav 2020년 6월 3일
I think your operating system is Windows on which MATLAB is installed therefore its not recognizing the command 'nproc' as its a linux system based command. I tired the above code in MATLAB in both Windows 10 and Debian 10. Windows one showed the same error and Debian one gave the correct output.
  댓글 수: 4
Image Analyst
Image Analyst 2020년 6월 6일
What does this show:
>> computer
ans =
'PCWIN64'

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

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by