답변 (1개)

Torsten
Torsten 2022년 11월 9일

0 개 추천

syms f(x) [1 2]
f
f(x) = 
f(1)
ans = 
Therefore what it created was a single function that has an array result. f(1) is interpreted as applying argument 1 to each of the functions inside the array, instead of as indexing the first location in the array.
In short: What you want is impossible in MATLAB.

카테고리

도움말 센터File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

질문:

2022년 11월 9일

답변:

2022년 11월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by