Why do I get these errors in Toolbox package? Help me out

The files the error throws shows no contents inside[1]
But these are the following errors I get:
Attempt to execute SCRIPT nargout as a function:
C:\Program Files\MATLAB\R2012b\toolbox\compiler\mcr\matlab\lang\nargout.m
Error in path (line 115)
if nargout==1, p = matlabpath; end
Error in addpath (line 87)
path(p, mp);
Error in run (line 10)
addpath(genpath(pwd));

 채택된 답변

Steven Lord
Steven Lord 2020년 9월 19일

0 개 추천

The MCR directories in the directory for MATLAB Compiler should not be on the MATLAB path. If you've added toolbox\compiler\mcr to the path, I recommend removing it.

댓글 수: 4

Harsha Priya G
Harsha Priya G 2020년 9월 20일
편집: Harsha Priya G 2020년 9월 20일
C:\Program Files\MATLAB\R2012b\toolbox\compiler\mcr\
Is that your suggestion is to remove(i.e delete) mcr directory?
Use pathtool to take the mcr directory out of your path.
No, do not delete it. Remove it from the MATLAB path using pathtool (or the "Set Path" button in the Environment section on the Home tab of the Toolstrip.)
Thanks for your time.It worked for me.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Search Path에 대해 자세히 알아보기

질문:

2020년 9월 19일

댓글:

2020년 9월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by