removeSpaces - index = 1 while index <=...

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

This note was uploaded on 07/06/2009 for the course CS 1371 taught by Professor Stallworth during the Fall '08 term at Georgia Institute of Technology.

Ask a homework question - tutors are online