Subtract function from array
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (2)
Jaap
am 13 Dez. 2011
0 Stimmen
Walter Roberson
am 16 Jan. 2012
arrayfun(@(x, y) y - f(x), x, y)
Kategorien
Mehr zu Image Arithmetic finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!