File Exchange

image thumbnail

mklib: a pedestrian function library loader generator

version 1.0.0.0 (13.3 KB) by us
creates a function library loader from a list of m-files (possibly with subfunctions)

1 Download

Updated 06 Jan 2006

View License

MKLIB takes one or more list(s) of valid M-files and automatically creates a library loader function (M-file), which returns a structure of function handles to all the subfunctions found in those M-files

the structure's field names are set to the name of the subfunctions

this allows a user to directly access individual subfunctions from the parent M-file(s)

note the library does NOT have to be in the ML path after the handles are assigned!

see the accompanying published M-file for an example and look at
help mklib
for more information on handling of nested functions and possible duplicates

Cite As

us (2021). mklib: a pedestrian function library loader generator (https://www.mathworks.com/matlabcentral/fileexchange/7597-mklib-a-pedestrian-function-library-loader-generator), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Robert Alvarez

cool function but got the following error on Matlab R2015a

Error using cell/strmatch (line 19)
Requires character array or cell array of strings as inputs.

Error in mklib (line 252)
id=strmatch('SyntaxErr:EndCount',id(end,:).');

MATLAB Release Compatibility
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!

html/