change variable in function_handle
Ältere Kommentare anzeigen
hello all,
i wanna to change x in f=@(x)sinx to x+2 so that we have g=(x)sin(x+2)
how can i derive g from f in matlab?
thanks alot
Akzeptierte Antwort
Weitere Antworten (1)
Sulaymon Eshkabilov
am 19 Mai 2021
f=@(x)sin(x)
g = @(x)f(x+2)
Good luck
1 Kommentar
saeed rezaei
am 19 Mai 2021
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!