Getting the error: Undefined function 'network' for input arguments of type 'double' while generating neural network using newgrnn
조회 수: 2 (최근 30일)
이전 댓글 표시
Line of code is : nn_t = newgrnn(ip,op,0.03);
Tried: which newgrnn C:\Program Files\MATLAB\R2016b\toolbox\nnet\nnet\nnnetwork\newgrnn.m >> which network C:\Program Files\MATLAB\R2016b\toolbox\nnet\nnet\@network\network.m % network constructor, Has no license available
댓글 수: 0
답변 (1개)
Sid Jhaveri
2016년 12월 8일
Hi Anjana,
This looks like licensing issue. Please try out the following steps:
1) Execute the command given below:
>>license('checkout','Neural_Network_Toolbox')
Depending upon the output of the above command, follow the next steps.
2) If output is 1, then this mean the toolbox with a valid license has been installed properly. In this case, try the following commands:
>>rehash toolboxcache
>>restoredefaultpath
If you are still facing the same issue, contact MathWorks Installation Support.
3) The output throws an error message and the error number is "39". This means that you have a network license and the administrator has not given you the permission to work with this toolbox. I would suggest asking the administrator of your organization to grant you the permission for the same.
4) In case of any other scenario, contact MathWorks Installation Support.
댓글 수: 2
Santhosh Tamilarasan
2019년 8월 7일
Hi, I am having the same issue too!
I tried all the options given by Sid in the first answer, and still getting the same error!
How did you fix the path mismatch problem? I am getting the same error both in 2016a, 2016b. Even the democode demogrn1.m throws the error.
>> demogrn1
Undefined function 'network' for input arguments of type 'double'.
Error in newgrnn>create_network (line 109)
net = network(1,2,[1;0],[1;0],[0 0;1 0],[0 1]);
Error in newgrnn (line 66)
net = create_network(param);
Error in demogrn1 (line 27)
net = newgrnn(X,T,spread);
참고 항목
카테고리
Help Center 및 File Exchange에서 Install Products에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!