how to install glmnet package in Matlab?
Show older comments
Hello guys, i want to use the glmnet functin wich included in glmnet package.
i downloaded this package but i don't know how to integrate it in MATLAB.
Do anyone can help me in how to integrate this package in Matlab ?
I appreciate any help!
Accepted Answer
More Answers (1)
Chris Angeloni
on 6 May 2020
I can confirm that this works on Matlab 2019a, but it requires a fortran compiler (I used Intel Parallel Studio XE 2019, which unfortunately required me to register for a free student trial to install).
First download the glmnet package, unzip it and add it to the matlab path. Then install a fortran compiler that works with your version of Matlab and OS.
Once you have set mex -setup to use this compiler (I think the command was:
mex -setup fortran
run the mexAll.m script in the glmnet folder.
This is what worked for me on Mac OSX 10.14.6 on Matlab2019a
1 Comment
Richard Warren
on 17 Oct 2020
This worked, but I had to install Microsoft Visual Studio before the student trial of Intel Parallel Studio XE 2019. Thank you!
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!