Remove the middle element from a vector - MATLAB Cody - MATLAB Central

Problem 1988. Remove the middle element from a vector

Difficulty:Rate

Remove the middle element of a vector?

Example:

[1,2,3] should return 2

[1,2,3,4] should return 2

[] should return empty vector

Solution Stats

47.98% Correct | 52.02% Incorrect
Last Solution submitted on Nov 22, 2024

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
2
3

Problem Recent Solvers91

Suggested Problems

Problem Tags

Community Treasure Hunt

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

Start Hunting!