Feeds
提问
I am having problems changing this code so that it includes FUNCTION in Matlab. I made the code so takes one specific equation but need it edited so it takes any equation. EDIT CODE SO THAT USES FUNCTION IN MATLAB
Let the function is f(x) = 8 - x^2 f = @(x) 8-x.^2; % Let us take a Riemann sum over [-2,2] at dx =0.5 dx=0.5; x=-2:dx:2; R...
5 years 前 | 0 个回答 | 0