Operator '+' is not supported for operands of type 'function_handle'.
5 ビュー (過去 30 日間)
古いコメントを表示
I have two function handle,such as g=@(x)x+a,f=@(y)y+b
why not do '+'
h=g+f
for example
for t=1:10
h(0)=g;
h=g+t.*f
end
0 件のコメント
回答 (2 件)
埃博拉酱
2023 年 6 月 26 日
Only symbolic functions can be added directly. You may need to refer to Symbolic Math Toolbox.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Symbolic Math Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!