I want to round off my answer upto 4 decimal place but my code dosen't work.

1 view (last 30 days)
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

Answers (0)

Categories

Find more on Fourier Analysis and Filtering in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!