What is the best way of passing several (more than 20) variables of different types and size to a function?
These variables are of types number, string, vector, matrix and cell.
Currently this is the way I am dealing with it:
% BEGIN main m-file
...
parameter1=
parameter2=
.
.
.
Func1
% END main m-file
my function:
function Func1
parameter1=evalin('base','parameter1');
parameter2=evalin('base','parameter2');
.
.
.
% do something
end
I am wondering if there is a better approach for this? Thank you