change variable in function_handle
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (1)
Sulaymon Eshkabilov
el 19 de Mayo de 2021
f=@(x)sin(x)
g = @(x)f(x+2)
Good luck
1 comentario
saeed rezaei
el 19 de Mayo de 2021
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!