Deal vector to function inputs

Hello,
My problem is as follows:
1. I create a function using syms as follows:
syms x y
f = @(x,y) x+y;
2. Now I assign a vector or a cell array and I want something as follows:
A = {1,2};
y(deal(A{:}) = 3
I basically looking for a way to make this work for any number of variables. Thank you

回答 (0 件)

カテゴリ

質問済み:

2016 年 11 月 4 日

編集済み:

2016 年 11 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by