MATLAB Answers

Do I need to recompile matconvnet everytime I start matlab?

5 views (last 30 days)
Ibraheem Al-Dhamari
Ibraheem Al-Dhamari on 15 Mar 2018
Answered: Priyank Sharma on 3 Apr 2018
As the title says. Everytime I start matlab I get this error
Undefined variable "dagnn" or class "dagnn.DagNN.loadobj".
The error goes when I recompile the library using:
>> vl_compilenn('enableGpu', true, 'cudaRoot', '/usr/local/cuda-9.0', 'cudaMethod', 'nvcc')

Answers (1)

Priyank Sharma
Priyank Sharma on 3 Apr 2018
Execute the following commands in MATLAB Command prompt:
>>rehash toolboxcache
These steps would allow you to reset your default path and clear the toolbox cache to make sure that the function would be accessible.

Community Treasure Hunt

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

Start Hunting!