Operator '+' is not supported for operands of type 'function_handle'.
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (2)
埃博拉酱
le 26 Juin 2023
Only symbolic functions can be added directly. You may need to refer to Symbolic Math Toolbox.
0 commentaires
Voir également
Catégories
En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!