How do you resolve conflict when multiple toolboxes have functions with the same name?
显示 更早的评论
When I call the smooth function, I want the smooth function from the curve fitting toolbox which simply does a moving average of my data. However, Matlab runs the smooth function from the econometrics toolbox, which appears to be entirely different. How do I specify that I want the smooth function from the curve fitting toolbox?
1 个评论
Benoit Espinola
2020-6-15
As a feedback for Mathworks. This is extremely bad programming practices. Users get confused and waste their time because of this. Unacceptable for a paid tool.
采纳的回答
更多回答(3 个)
khadija el maati
2017-4-2
1 个投票
i had falling in the same problem with the function findpeaks wich is defined in the toolbox signal/signal and wich is defined in the toolbox plot_hht (Matlab 2013) .the solution for me was to move the position of the toolbox signal up to the toolbox plot_hht ..for this go to:home-->Set Path-->clic in signal toolbox-->clic in the Move up botton to give a priority to signal toolbox than the plot_hht toolbox
1 个评论
Jokin Ezenarro
2021-8-6
This was the best option for me, thanks.
Sinan Islam
2022-6-11
0 个投票
I solved this problem by packaging the conflicting function.
I have two functions, both named "pca". The first pca function is in the Statistics & ML toolbox, and the second pca function from a file I downloaded from Matlab File Exchange Community.
I packaged the second pca function by simply adding a plus sign to the folders containing it.
So if the conflicting pca function is contained within 5 folders, you have to add plus sign to every folder.
In case you needed to use the packaged function, you have to explicitly import it.
Note: You need to remove the conflicting function from the namespace before packaging it, then add it back when done.
Deependra Mishra
2022-7-29
0 个投票
I had the similar issue, I want to use classify.m function from nnet toolbox, however, when I use, it calls the classify method from stats toolbox.
which -all classify
C:\Program Files\MATLAB\R2022a\toolbox\stats\stats\classify.m
C:\Program Files\MATLAB\R2022a\toolbox\nnet\cnn\@DAGNetwork\classify.m % DAGNetwork method
In Set Path, nnet toolbox is above the stats toolbox. How do I call the classify method from nnet toolbox?
4 个评论
Steven Lord
2022-7-30
In order to call the classify function from Deep Learning Toolbox, the first input must be a "Trained network, specified as a SeriesNetwork or a DAGNetwork object. You can get a trained network by importing a pretrained network (for example, by using the googlenet function) or by training your own network using trainNetwork."
Walter Roberson
2022-7-30
Deependra Mishra
2022-7-30
编辑:Deependra Mishra
2022-7-30
I did provide the correct argument to the classify method, still it was calling the method from stats toolbox.
Following is the line of code i used to call the classify method.
[YPred,probs] = classify(Net,imds,'MiniBatchSize',32);
Net --> DAGNetwork
imds --> imagedatastore
Walter Roberson
2022-7-30
perhaps you do not have the Deep Learning Toolbox installed or licensed
What shows up for
whos Net
which classify(Net)
which -all classify
类别
在 帮助中心 和 File Exchange 中查找有关 Descriptive Statistics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!