change variable in function_handle
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (1)
Sulaymon Eshkabilov
le 19 Mai 2021
f=@(x)sin(x)
g = @(x)f(x+2)
Good luck
1 commentaire
saeed rezaei
le 19 Mai 2021
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!