Why am I unable to call UNLOADLIBRARY while an object generated with the LIBSTRUCT command exists in my workspace?

12 views (last 30 days)
I am trying to execute the example code found in the documentation for LIBSTRUCT:
web([docroot,'/techdoc/apiref/libstruct.html'])
This code results in the following error:
??? Error using ==> unloadlibrary
Cannot unload a library that has outstanding objects.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 18 Oct 2013
This change has been incorporated into the documentation in Release 14 Service Pack 3 (R14SP3). For previous releases, read below for any additional information:
There is an error in the documentation for LIBSTRUCT. To unload a library, all structures generated by LIBSTRUCT must be cleared from the MATLAB workspace. To work around this issue, clear any LIBSTRUCT objects related to a library before calling UNLOADLIBRARY.

More Answers (0)

Products


Release

R14SP1

Community Treasure Hunt

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

Start Hunting!