Subtract function from array
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (2)
Jaap
le 13 Déc 2011
0 votes
Walter Roberson
le 16 Jan 2012
arrayfun(@(x, y) y - f(x), x, y)
Catégories
En savoir plus sur Image Arithmetic 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!