What is the best method to generate function handle from double array?
Mostra commenti meno recenti
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);
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Numerical Integration and Differential Equations in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!