Cody

# Problem 43660. Use R2016b Text Manipulations to Fix These Addresses (Part 1)

Solution 1190688

Submitted on 16 May 2017 by Dominik
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 2124(42.29189440573543, -71.0887162019496)'; y = string('950 Blue Hill Ave.Dorchester, MA 2124'); assert (all(y == myFun(x)));

adrIn = '950 Blue Hill Ave.Dorchester, MA 2124()'

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

adrIn = '259 Allandale Rd.Jamaica Plain, MA 2467()'

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

adrIn = '850 Harrison Ave.Boston, MA 2118()'

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

adrIn = '23-29 Tucker St.Dorchester, MA 2124()'

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!