Dear Chou-Ching,
you will have to look up MATLAB documentation/help texts etc to find out
what is an appropriate input for the function you want to call.
"Evaluated input" takes any valid MATLAB variable (e.g. an array, a
struct, a cell...). If you enter a numeric matrix here and call the
MATLAB function "sum", it would compute the sum of the matrix in the
same way as MATLAB would do. In order to access the output, you would
have to define the type of output variable as e.g. "evaluated" or
"real". Then it will become available to subsequent batch modules in
your job.
This functionality is not intended to replace MATLAB programming. Its
main purpose is to have quick access to basic MATLAB functions from
within a batch job.
Hope this helps,
Volkmar
Am 27.04.2010 06:18, schrieb 林宙晴:
> Dear Volkmar
> Thank you for your help.
> I understand it needs some kind of correct inputs. But I just can't
> figure out what is proper.
> Take for example, if I am going to call a basic function 'sum'
> What is the input suppose to be? The offered possible options include
> 'evaluated input' and 'string'.
> (Actually, I don't understand what is meant by evaluated input. same as
> dependency?)
> I tried to give it an array or a variable or change it to string. None
> worked.
> Maybe this Call Matlab function is not to be used for calling these
> types of functions.
>
> If I try to call a more relevant function, spm_eeg_filter.m, it needs a
> structure as an input.
> Because there is no option of dependency, which means I need to call
> another function or m file
> first to construct a proper structure as input for it. Am I right?
> I think I will use script, instead of continuing trial and error with
> this function.
> Thanks, anyway.
> Sincerely,
> Chou-Ching
>
> 2010/4/26 Volkmar Glauche <[log in to unmask]
> <mailto:[log in to unmask]>>
>
> Dear Chou-Ching,
>
> you will have to supply the necessary inputs in their correct order
> by adding some of the input options. If you want to collect the
> outputs for further batch processing, you will also have to add the
> expected types of outputs in their correct output order.
>
> Hope this helps,
>
> Volkmar
>
> <https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=SPM;d36ace37.1004>
>
>
|