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!