I have a function func(x) which signature is
[v] = func(x)
where v is a function. I wanted to do the following, after reading this post
x= [1:10];
for i=1:length(x)
v{i} = func(x(i));
end
and I got this error:
Cell contents assignment to a non-cell array object.
What is it that I'm doing wrong?