Lets say i have a symbolic function of array[2 2]. Each element represents a function. Then i converted it with matlabFunction() function into function handler. It is all okay up to now. I can get 2x2 answer matrix for example when i input f(1,1). How can i input an vector instead of putting manually 1 and 1. For example i want to define x0=[1 1] and then put f(x0). Each time i get Not enough input arguments. It tries to put 1 to x and then again 1 to x and give to answers. But because there is one more variable called y it gives not enough input argument error. Any suggestion? Basically i want to create f(x), where f and x are matrices. So it becomes system of equation.
For example:
variable1= [1 1]
jac= @(a,b)reshape([b,a.*2.0+a.^2.*b.^2.*3.0,a+b.*2.0,a.^3.*b.*2.0],[2,2])
jac(variable[1 1])
Not enough input arguments.
Error in symengine>@(a,b)reshape([b,a.*2.0+a.^2.*b.^2.*3.0,a+b.*2.0,a.^3.*b.*2.0],[2,2])
but when
jac(1,1)
ans =
1 3
5 2