What is the best method to generate function handle from double array?
显示 更早的评论
I have experimental data in array but I need pass it to a function(integral) as a function handle. May you advice some solution? For example I try this method but it's not very clear
arr = [1 2 2];
f = @(t)(t - floor(t)) .* arr(ceil(t)) - (t - ceil(t)) .* arr(floor(t));
t = integral(f, 1, 3);
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Numerical Integration and Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!