Let's say I have following functions:
f1 = @(x) a*x(1) + 1;
f2 = @(x) b*x(2) - 1;
where a and b are parameters that I want to specify before. And a vector:
I want to create function handler F that will be created before hand (like a delegation in C#) using a and b. I want to use F to calculate next vector values (f1 for first cell, f2 for second) for instance given a = b = 1:
I tried creating cell:
but it gives me an error "Index exceeds the number of array elements (2).".