Problem using function corrplot

Hi everyone,
I get the error Unrecognized function or variable 'corrplot' when I try to excute this function.
The problem is that I have the Econometrics Toolbox (which is necessary for this function) installed. I have tried uninstalling it and reinstalling it but it didn't work.
I already have searched in the forums but I didn't found any answer that could help me.
(Running MATLAB in Ubuntu 20,04)
Does anyone know how to make this work?
Thank you in advance for your help.

4 Comments

Have you checked it is definitely installed by typing
ver
on the command line?
And if it is, what does
which corrplot
on the command line show?
Thank you very much for your quick response, Adam.
Actually, the toolbox doesn't appear when I type
ver
but it appears as "Installed" in the Add-On Manager.
Oh, and I forgot to mention that I'm running MATLAB on Ubuntu 20.04.
What do you recommend?
I'm afraid I'm not familiar with Ubuntu or the finer points of toolbox installation, but that is definitely your problem, if the toolbox is not showing in the ver command.
I see, don't worry Adam. I really do appreaciate your help.
If I find the solution I will post it here.
Best wishes.

Sign in to comment.

 Accepted Answer

All I had to do was execute matlab as a super user using
sudo matlab
from terminal.
Then run the command
restoredefaultpath
and
savepath pathdef.m
Finally, run
ver
again to check if the path was updated and the toolbox appears.

More Answers (0)

Categories

Products

Release

R2021a

Asked:

on 3 Nov 2021

Edited:

on 3 Nov 2021

Community Treasure Hunt

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

Start Hunting!