Subtract function from array
古いコメントを表示
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
採用された回答
その他の回答 (2 件)
Walter Roberson
2012 年 1 月 16 日
arrayfun(@(x, y) y - f(x), x, y)
カテゴリ
ヘルプ センター および File Exchange で Image Arithmetic についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!