MATLAB: How i Initialized a function defined by syms order such i do not number variables this function

no tags

i have code that inputs of it are a function defined by syms order and a point that changed every time dimension of this function then for example: i can not write
syms f(x,y)
x0=(1,1);
f(x,y)=x+y;
f(x0)= error
f(x(1),x(2))

Best Answer

x0=[1,1];
xcell = num2cell(x0);
f(xcell{:}) = some_value;
Related Question