how to manipulate function hundles ?

when trying to manipulate function hundles (@) by devision for example, I get the message "Undefined operator '/' for input arguments of type 'function_handle'."

1 件のコメント

Image Analyst
Image Analyst 2016 年 5 月 5 日
The Crystal Ball Toolbox has not yet been released, so until then, you'll need to read this link before we can answer you.

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

回答 (1 件)

Star Strider
Star Strider 2016 年 5 月 5 日

0 投票

Don’t refer to the function handles, but to the functions themselves in your calculations:
f = @(x) x.^2;
g = @(y) sin(y);
t = 1:10;
q = f(t)./g(t);

カテゴリ

ヘルプ センター および File ExchangeAntennas and Electromagnetic Propagation についてさらに検索

質問済み:

2016 年 5 月 5 日

回答済み:

2016 年 5 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by