Trimming Spaces - MATLAB Cody - MATLAB Central

Problem 44. Trimming Spaces

Difficulty:Rate

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

41.11% Correct | 58.89% Incorrect
Last Solution submitted on Mar 01, 2025

Problem Comments

Solution Comments

Show comments
Primes and Rough Numbers, Basic ideas
What is a rough number? What can they be used...
3
5

Problem Recent Solvers2450

Suggested Problems

More from this Author96

Problem Tags

Community Treasure Hunt

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

Start Hunting!
Go to top of page