Cody

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

Solution 1382904

Submitted on 17 Dec 2017 by Shawn Mengel
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)));

y = 1×2 cell array {'950 Blue Hill Ave.Dorchester, MA 2124'} {'42.29189440573543, -71.0887162019496)'}

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)));

y = 1×2 cell array {'259 Allandale Rd.Jamaica Plain, MA 2467'} {'42.30236456682541, -71.14054916195282)'}

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)));

y = 1×2 cell array {'850 Harrison Ave.Boston, MA 2118'} {'42.33517814576012, -71.07473087474541)'}

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)));

y = 1×2 cell array {'23-29 Tucker St.Dorchester, MA 2124'} {'42.30786999970087, -71.06340000010977)'}

### Community Treasure Hunt

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

Start Hunting!