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

30 ビュー (過去 30 日間)
alpedhuez
alpedhuez 2020 年 5 月 31 日
コメント済み: Image Analyst 2020 年 6 月 6 日
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 件のコメント
alpedhuez
alpedhuez 2020 年 6 月 6 日
let me work on it.
Image Analyst
Image Analyst 2020 年 6 月 6 日
What does this show:
>> computer
ans =
'PCWIN64'

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by