Operator '+' is not supported for operands of type 'function_handle'.
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (2)
埃博拉酱
il 26 Giu 2023
Only symbolic functions can be added directly. You may need to refer to Symbolic Math Toolbox.
0 Commenti
Vedere anche
Categorie
Scopri di più su Symbolic Math Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!