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!