change variable in function_handle
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (1)
Sulaymon Eshkabilov
il 19 Mag 2021
f=@(x)sin(x)
g = @(x)f(x+2)
Good luck
1 Commento
saeed rezaei
il 19 Mag 2021
Categorie
Scopri di più su Logical in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!