Re: Passing MATLAB script as a function parameter
- From: Peter Boettcher <boettcher@xxxxxxxxxx>
- Date: Fri, 30 Nov 2007 12:31:17 -0500
"James " <jalanthomas_no_spamming@xxxxxxxxxxx> writes:
If I have a MATLAB function, is there a way I can pass
a reference to another MATLAB script to that function?
What I would like to do is to use this referenced
[initialization] script to set several directory names to
be used by the function. I want to be able call the
function with different initialization scripts. This way,
my function has no dependency on exactly what the scripts
are. Together, a particular initialization script and the
common/generic function will be used for a given
application.
Or is there a better way to achieve this in MATLAB?
Pass in a structure instead.
params.datadir = '/home/data/';
params.resultdir = '/another/dir';
-Peter
.
- References:
- Passing MATLAB script as a function parameter
- From: James
- Passing MATLAB script as a function parameter
- Prev by Date: Re: Passing MATLAB script as a function parameter
- Next by Date: Re: adding data to dynamic field
- Previous by thread: Re: Passing MATLAB script as a function parameter
- Next by thread: Re: Passing MATLAB script as a function parameter
- Index(es):
Relevant Pages
|