I want to round off my answer upto 4 decimal place but my code dosen't work.
1 view (last 30 days)
Show older comments
function d=divided_diff(a,b,c,f1,f2,f3)
p=vpa((f2-f1)/(b-a));
q=vpa((f3-f2)/(c-b));
d=(q-p)/(c-a);
d=round(d,4);
end
2 Comments
Answers (0)
See Also
Categories
Find more on Fourier Analysis and Filtering in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!