I think that in test case 1 the answer should be [1 5].
Maybe the problem statement should specifically exclude the first and last elements?
Find the alphabetic word product
2335 Solvers
245 Solvers
Generate N equally spaced intervals between -L and L
573 Solvers
262 Solvers
Matlab Basics - Convert a row vector to a column vector
437 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!