Problem 44. Trimming Spaces

Created by Cody Team in Community

Given a string, remove all leading and trailing spaces (where space is defined as ASCII 32).

 Input  a = ' singular value decomposition  '
 Output b is 'singular value decomposition'

Solution Stats

31.71% Correct | 68.29% Incorrect
Last solution submitted on Mar 21, 2019

Problem Comments

Solution Comments

Recent Solvers1057

Suggested Problems

More from this Author95

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!