Answered step by step
Verified Expert Solution
Question
1 Approved Answer
use matlab Write a function called strip which takes in a single string s , and returns a version of s with all the spaces
use matlab
Write a function called strip which takes in a single string s, and returns a version of s with all the spaces removed.
Note: do not display the result in the function.
The format of the output is specified in the following examples:
>> strip('This is a test') Thisisatest >> strip(' Another test ') Anothertest
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started