Subtract function from array
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (2)
Jaap
il 13 Dic 2011
0 voti
Walter Roberson
il 16 Gen 2012
arrayfun(@(x, y) y - f(x), x, y)
Categorie
Scopri di più su Image Arithmetic 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!