Cant find function from downloaded toolbox

Hello,
I am using a MacBookPro M1-chip computer, and Im curerntly running MatLab 2020b. Throguh a school project I have to use functions from two toolboxes, downloaded through these links. The codes in the folders are written in matlab apperantly. When i Unzip and put them in a folder, witch i "add to path" and then try to run one of the function i get the error "Undefined function 'Funtion_name' for type double"....
Toolboxes
Some info: (note that the toolbox MFE is appreantly installed, but are not working..)
MATLAB Version: 9.9.0.1592791 (R2020b) Update 5
MATLAB License Number: ********
Operating System: macOS Version: 11.2.3 Build: 20D91
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
MATLAB Version 9.9 (R2020b)
Econometrics Toolbox Version 5.5 (R2020b)
Financial Toolbox Version 6.0 (R2020b)
MFE Toolbox Toolbox Version 4.0
Optimization Toolbox Version 9.0 (R2020b)
Risk Management Toolbox Version 1.8 (R2020b)
Statistics and Machine Learning Toolbox Version 12.0 (R2020b)
Symbolic Math Toolbox Version 8.6 (R2020b)
Is this a problem that somebody can help with?

6 Commenti

Please give an example of a command that fails.
[adfstat, pval, critval, ~, lags_level] = augdfautolag(ret.GSPC, model, maxlag, ic);
where...
class(ret.GSPC)
ans =
'double'
% and the other input are...
model = 2;
maxlag = 12;
ic = 'BIC';
returns error:
Unrecognized function or variable 'augdfautolag'.
Error in Assignment_2 (line 96)
[adfstat, pval, critval, ~, lags_level] = augdfautolag(ret.GSPC, model, maxlag, ic);
Did you run the addToPath function provided with the toolbox? It is needed to put the sub-directories into the path.
Thank you! That must have been the issue for the first package! Thank you! However I don´t have a "addtoPath" code for the next toolbox.. How can I solve this? I am a bit scared to do something wrong here.
The other toolbox is from your teacher, you indicated. I have no idea what code it has, or what command you are using to invoke it.
I wonder if it was installed inside the MATLAB toolbox heirarchy of folders. And that will generally be a bad thing, because MATLAB caches those folders. So when you added it to the path, MATLAB did not recache that directory.

Accedi per commentare.

Risposte (0)

Categorie

Richiesto:

il 29 Mar 2021

Commentato:

il 29 Mar 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by