Cody

Problem 45280. La derivada numérica

Solution 2117611

Submitted on 4 Feb 2020
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
h = 0.001; v = 0:h:50; % Recta y_correct = ones(1,length(v)-1); assert(isequal(round(your_fcn_name(v,h)),round(y_correct)))

Matrix dimensions must agree. Error in your_fcn_name (line 2) dv = (v - [0 v])/h; Error in Test1 (line 4) assert(isequal(round(your_fcn_name(v,h)),round(y_correct)))

Suggested Problems

More from this Author1

Community Treasure Hunt

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

Start Hunting!