Re: Passing MATLAB script as a function parameter
- From: Chris Hulbert <cchgroupmail@xxxxxxxxx>
- Date: Fri, 30 Nov 2007 12:50:10 -0800 (PST)
On Nov 30, 12:24 pm, "James " <jalanthomas_no_spamm...@xxxxxxxxxxx>
wrote:
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?
Thanks, Alan
To add to the list of possibilities, you can pass the script as a
function handle.
Chris
.
- References:
- Passing MATLAB script as a function parameter
- From: James
- Passing MATLAB script as a function parameter
- Prev by Date: Re: defining outputs of unknown size in a mex file
- Next by Date: Best Matlab books in Neuroscience
- Previous by thread: Re: Passing MATLAB script as a function parameter
- Next by thread: cat applied to cell array
- Index(es):
Relevant Pages
|