how i Initialized a function defined by syms order such i do not number variables this function?

1 次查看(过去 30 天)
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))

采纳的回答

Walter Roberson
Walter Roberson 2015-7-11
x0=[1,1];
xcell = num2cell(x0);
f(xcell{:}) = some_value;

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Numbers and Precision 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by