Cody

Problem 895. Generate N equally spaced intervals between -L and L

Solution 2984548

Submitted on 23 Sep 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
y = your_fcn_name(100,100); assert( y(1) == -100 && y(end) == 100 && mean(diff(y))== 2 && std(diff(y)) == 0 );

Undefined function 'your_fcn_name' for input arguments of type 'double'. Error in Test1 (line 1) y = your_fcn_name(100,100);

2   Fail
y = your_fcn_name(200,100); assert( y(1) == -100 && y(end) == 100 && mean(diff(y))== 1 && std(diff(y)) == 0 );

Undefined function 'your_fcn_name' for input arguments of type 'double'. Error in Test2 (line 1) y = your_fcn_name(200,100);

3   Fail
y = your_fcn_name(2,100); assert( y(1) == -100 && y(end) == 100 && mean(diff(y))== 100 && std(diff(y)) == 0 );

Undefined function 'your_fcn_name' for input arguments of type 'double'. Error in Test3 (line 1) y = your_fcn_name(2,100);

Suggested Problems

More from this Author56

Community Treasure Hunt

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

Start Hunting!