Cody

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

Solution 2526932

Submitted on 12 Jun 2020 by Paul Bower
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)));

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

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

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