It needs more test cases. It is not clear what the output should be for all possible x.
210 Solvers
Back to basics - mean of corner elements of a matrix
300 Solvers
364 Solvers
171 Solvers
Matlab Basics II - Extract last 3 elements of a vector
166 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!