Getting the error: Undefined function 'network' for input arguments of type 'double' while generating neural network using newgrnn
6 次查看(过去 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!