Subtract function from array
Mostrar comentarios más antiguos
Hi, I have a list of x/y coordinates. Is there an easy way to subtract a function (y = f(x)) from all y data? Thanks a lot!
Jacob
Respuesta aceptada
Más respuestas (2)
Jaap
el 13 de Dic. de 2011
0 votos
Walter Roberson
el 16 de En. de 2012
arrayfun(@(x, y) y - f(x), x, y)
Categorías
Más información sobre Image Arithmetic 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!