There seem to be some problems. First, in the statement of the problem, I think the correct solution is z=3, not z=4. Second, in the test problems, the function solution() is called with an argument of x. It needs to be solution(x1,x2).
... also, in test #3, the solution is compared to y_correct rather than z_correct.
The problem description and test suite have been cleaned up.
1269 Solvers
Remove the two elements next to NaN value
417 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3891 Solvers
calculate linear convolution two vectors
112 Solvers
Append two matrix as shown below example
185 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!