Operator '+' is not supported for operands of type 'function_handle'.
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (2)
埃博拉酱
am 26 Jun. 2023
Only symbolic functions can be added directly. You may need to refer to Symbolic Math Toolbox.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!