Cody

# Problem 43662. Use R2016b Text Manipulations to Fix These Addresses (Part 3)

Solution 1993226

Submitted on 28 Oct 2019 by Nikolaos Nikolaou
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
x = '950 Blue Hill Ave.Dorchester, MA 02124'; y = string('950 Blue Hill Ave., Dorchester, MA 02124'); assert (all(y == myFun(x)));

m = 1×1 cell array {'Ave.'} adrOut = '950 Blue Hill Ave., Dorchester, MA 02124' m1 = 0×0 empty cell array m2 = 0×0 empty cell array

2   Pass
x = '259 Allandale Rd.Jamaica Plain, MA 02467'; y = string('259 Allandale Rd., Jamaica Plain, MA 02467'); assert (all(y == myFun(x)));

m = 0×0 empty cell array m1 = 1×1 cell array {'Rd.'} adrOut = '259 Allandale Rd., Jamaica Plain, MA 02467' m2 = 0×0 empty cell array

3   Pass
x = '850 Harrison Ave.Boston, MA 02118'; y = string('850 Harrison Ave., Boston, MA 02118'); assert (all(y == myFun(x)));

m = 1×1 cell array {'Ave.'} adrOut = '850 Harrison Ave., Boston, MA 02118' m1 = 0×0 empty cell array m2 = 0×0 empty cell array

4   Pass
x = '23-29 Tucker St.Dorchester, MA 02124'; y = string('23-29 Tucker St., Dorchester, MA 02124'); assert (all(y == myFun(x)));

m = 0×0 empty cell array m1 = 0×0 empty cell array m2 = 1×1 cell array {'St.'} adrOut = '23-29 Tucker St., Dorchester, MA 02124'