Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!