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

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))

 採用された回答

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

1 件のコメント

xosro
xosro 2015 年 7 月 11 日
thank you mr Roberson like every time your answer is great

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

タグ

質問済み:

2015 年 7 月 10 日

コメント済み:

2015 年 7 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by