Back to basics 20 - singleton dimensions - MATLAB Cody - MATLAB Central

Problem 410. Back to basics 20 - singleton dimensions

Difficulty:Rate

Covering some basic topics I haven't seen elsewhere on Cody.

Remove the singleton dimensions from the input variable (e.g. if size(input)==[2 3 1 4], size(output)==[2 3 4])

Solution Stats

45.6% Correct | 54.4% Incorrect
Last Solution submitted on Jun 25, 2025

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 Solvers271

Suggested Problems

More from this Author39

Problem Tags

Community Treasure Hunt

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

Start Hunting!