{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

removeSpaces

removeSpaces - index = 1 while index<= length(A if...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 %%PROBLEM 2%% function output = removeSpaces(A) % takes in a string and outputs the same string but with all the space characters removed
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: index = 1 while index <= length(A) if uint8(A(index)) == 32 A(index) = end index = index + 1 output = A end end...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online