Attempt to execute SCRIPT vl_nnconv as a function
古いコメントを表示
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 件)
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 件のコメント
Loki Scarlette
2017 年 12 月 6 日
編集済み: Loki Scarlette
2017 年 12 月 6 日
Thank you Carl. I also got the same problem "Attempt to execute SCRIPT vl_nnconv as a function:" I then run the "which -all vl_nnconv " and saw that there were 2 files of the same name. one is vl_nnconv.m the other is vl_nnconv.mexw64 so I just changed the name of .m so that the program called .mexw64 instead. and that went well. code works now.
Luke Achenie
2018 年 6 月 18 日
There is a folder called "mex". I just copied the contents of that folder into the upper level "matlab" folder and everything works now.
kyzrsze Kyzrsze
2019 年 4 月 25 日
Loki sacarlet ı actually didnt understand how you fix it can you explain it please
Vibha Belavadi
2019 年 12 月 18 日
I would like yo add to @Luke Achenie's answer. I 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
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
2021 年 4 月 19 日
addpath('C:\place\the\mex\are\stored', '-BEGIN')
ravi kiran
2017 年 8 月 3 日
0 投票
Attempt to execute SCRIPT mapreduce as a function: /home/hadoop/matlab/R2017a/bin/job/mapreduce.mlx
カテゴリ
ヘルプ センター および File Exchange で Deep Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!