Code covered by the BSD License
-
S=LibraryStruct
Returns a structure of IndexableFunction handles to all the methods of class @double.
-
S=add2lib(varargin)
ADD2LIB - Add new IndexableFunction handles to the structure S held in LibraryStruct.mat
-
S=rmlib(varargin)
RMLIB - Remove IndexableFunction handles from the struct S held in LibraryStruct.mat
-
varargout=initlib
INITLIB - Returns a structure of IndexableFunction handles to all the methods of class @double.
-
IndexableFunction
IndexableFunction - A class of function-handle-like objects allowing
-
flib
FLIB- A class to make a library of IndexableFunction handles held in LibraryStruct.mat
-
View all files
from
Direct Indexing of Function Calls (OOP Exercise)
by Matt J
Pseudo- function handle which can both call a function and post-index the output in 1 expression.
|
| S=rmlib(varargin)
|
function S=rmlib(varargin)
%RMLIB - Remove IndexableFunction handles from the struct S held in LibraryStruct.mat
%
% Snew=rmlib('funcname1','funcname2',...)
%
%will remove S.funcname1, S.funcname2, etc... from S and resave S to
%LibraryStruct.mat
%
%Optionally also, the revised structure Snew can be returned.
vars=load('LibraryStruct','S');
S=vars.S;
S=rmfield(S,varargin);
save LibraryStruct S
|
|
Contact us at files@mathworks.com