Attempt to execute SCRIPT vl_nnconv as a function

조회 수: 13 (최근 30일)
Matlab_user
Matlab_user 2017년 7월 21일
댓글: Walter Roberson 2021년 4월 19일
I get the following error when trying to run 'vl_simplenn' from the matconvnet that is provided as an add-on package in MATLAB R2017a.
Attempt to execute SCRIPT vl_nnconv as a function:
/root/Documents/MATLAB/Add-Ons/Collections/vlfeat_matconvnet/code/vlfeat-matconvnet-6221423/matlab/vl_nnconv.m

답변 (2개)

Carl
Carl 2017년 7월 24일
편집: Carl 2017년 7월 24일
Hi, this is likely an issue with your MATLAB path. That error indicates that a script (which do not take input arguments) is being run as a function (called with input arguments). Try running the following commands:
which -all vl_simplenn
which -all vl_nnconv
And looking further into the line that is calling the vl_nnconv function. See the following Answers post for more details on this type of error:
https://www.mathworks.com/matlabcentral/answers/93148-why-do-i-receive-the-error-attempt-to-execute-script-filename-as-a-function
You may also want to contact MatConvNet about this error.
  댓글 수: 6
Dhiraj Dhakal
Dhiraj Dhakal 2021년 4월 19일
@Vibha Belavadi I am new to matlab, would you please let me know what do you mean by "added my mex path such that when I list the paths in MATLAB using path command, the '..../matlab/mex' path appears on top of '.../matlab' path"
Walter Roberson
Walter Roberson 2021년 4월 19일
addpath('C:\place\the\mex\are\stored', '-BEGIN')

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


ravi kiran
ravi kiran 2017년 8월 3일
Attempt to execute SCRIPT mapreduce as a function: /home/hadoop/matlab/R2017a/bin/job/mapreduce.mlx

카테고리

Help CenterFile Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by