User`s guide
list
a function declaration to MATLAB software and the declaration
string does not match the declaration for
ff as determined when
you created
ff.
In an example that demonstrate s this pro blem, the function
declaration has a n ame fo r the first input,
a.Inthedeclare call, the
declaration string does not provide a name for the first input, just
adatatype,
int. When you issue the declare call, MATLAB software
names the first input
ML_Input1.Ifyoutrytouselist to get
information about the input named
ML_Input, list returns an error.
Here is the code, starting w ith the function declaration in your code:
int foo(int a) % Function declaration in your source code
declare(ff,'decl','int foo(int)')
% MATLAB generates a warning that it has assigned the name
% ML_Input to the first input argument
list(ff,'ML_Input') % list returns an error for this call
• When varname does not m atch the input name in the function
declaration provided in your source code, as compared to the
declaration string you used in a d eclare operation.
Assume your source code includes a function declaration for
foo:
int foo(int a);
Now pass a declaration for foo to MATLAB software:
declare(ff,'decl','int foo(int b)')
MATLAB software issues a warning that the input names do not
match. When you use list on the input argument
b,
list(ff,'b')
list
returns an error.
7-82