I initially got an error of minFunc in matlab, i have uploaded the code of the function seperately, but it went away the next day without me doing anything. what happened?
1 次查看(过去 30 天)
显示 更早的评论
Unrecognized function or variable 'penalizedKernelL2'.
Error in minFunc (line 315)
[f,g] = funObj(x,varargin{:});
Error in btp (line 98)
w = minFunc(@penalizedKernelL2, zeros(size(Kanchor1, 1),1), options, Kanchor1, funObj, C);
I uploaded the entire markschmidt folder. The error went away after a coupe of days.
The same thing happened for three of my friends too, why is it getting resolved automatically.
0 个评论
回答(1 个)
Harsh Sharma
2024-9-19
Hi Puvvada,
According to my understanding the error does not occur when you restart the MATLAB after a couple of days. The most likely reason for this behaviour is the “MATLAB search path”. It is a subset of all the folders in the file system. MATLAB uses the search path to efficiently locate files used with MathWorks products.
It is possible that the “markschmidt” folder was not initially added to MATLAB, causing the error. Additionally, some dependencies of “penalizedKernelL2” might not have been added to the path.
You can check the following page to understand more about these scenarios :
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!