Hi folks,
I'm having a problem getting RUSH to recognize code as executable,
rather than the
contents of a variable.
I have a routine that randomly selects one of five cell arrays, each
with a set of strings in it
that is the label to a binary .mat file that contains the code.
After one of the five arrays is
selected, one of the cells is randomly selected, and this string is
then set into the contents
of a variable. I then use the LOAD command to load that .mat file
into the workspace.
My problem is that RUSH needs to have the name of this .mat variable,
and it must be a
string that specifies a character array. I can specify the variable
that contains the name of
the .mat file as the first argument to RUSH, but I can't get my
script to perform the cell to
character conversion for that .mat file... config = char(config);
doesn't work in my script,
while it does work in the command window interactively.
If anyone has any suggestions about how to resolve this, or
suggestions for alternative
methods for specifying the code to be run by RUSH, I'd appreciate it.
This has got me
stumped...
I'm having a problem getting RUSH to recognize code as executable,
rather than the
contents of a variable.
I have a routine that randomly selects one of five cell arrays, each
with a set of strings in it
that is the label to a binary .mat file that contains the code.
After one of the five arrays is
selected, one of the cells is randomly selected, and this string is
then set into the contents
of a variable. I then use the LOAD command to load that .mat file
into the workspace.
My problem is that RUSH needs to have the name of this .mat variable,
and it must be a
string that specifies a character array. I can specify the variable
that contains the name of
the .mat file as the first argument to RUSH, but I can't get my
script to perform the cell to
character conversion for that .mat file... config = char(config);
doesn't work in my script,
while it does work in the command window interactively.
If anyone has any suggestions about how to resolve this, or
suggestions for alternative
methods for specifying the code to be run by RUSH, I'd appreciate it.
This has got me
stumped...