Deal vector to function inputs
조회 수: 2 (최근 30일)
이전 댓글 표시
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
UPDATE: never mind I have found it: http://stackoverflow.com/questions/4755324/in-matlab-for-a-multiple-input-function-how-to-use-a-single-input-as-multiple
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!