[Sorry for the dumb question. I’m completely new to MATLAB (and completely bewildered by it).]
I want to write a function to2d, taking as its only argument an m x 1 cellarray of 1 x n cellarrays, and returning the corresponding m x n cellarray.
For example, we would get stuff like:
>> A = {{1, 2}; {3, 4}; {5, 6}}
A =
{1x2 cell}
{1x2 cell}
{1x2 cell}
>> B = to2d(A)
B =
[1] [2]
[3] [4]
[5] [6]
This question may be thought as a special case of the more general problem of programmatically passing arguments to a variable-arguments function when all one knows about these arguments is that they are stored in some cellarray. In Python, one does this by using the *-syntax. E.g.
func_with_indeterminate_args(*a_runtime_list_of_args)
Thanks!
Just what the function
catdoing: