We have a series of addresses like the following which we'd like to reformat. Can you remove the latitude and longitude from the addresses?
Example:
Input: adrIn = '959 Blue Hill Ave.Dorchester, MA 2124(42.29189440573543, -71.0887162019496)';
Output: adrOut = '950 Blue Hill Ave.Dorchester, MA 2124';
Feature Tip:
R2016b introduces string arrays and text manipulation functions which can help. To learn more see MATLAB Characters and Strings.
Background:
Did you know the city of Boston has a number of urban orchards? This data comes form a list of these orchards. We're trying to reformat the addresses into a standard form. You can see the data here or import it into MATLAB with webread.
data = webread('https://data.cityofboston.gov/api/views/byxy-288e/rows.csv');
Related Problems:
Use R2016b Text Manipulations to Fix These Addresses (Part 1)
Use R2016b Text Manipulations to Fix These Addresses (Part 2)
Use R2016b Text Manipulations to Fix These Addresses (Part 3)
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers125
Suggested Problems
-
Back to basics 3 - Temp Directory
384 Solvers
-
Rotate input square matrix 90 degrees CCW without rot90
683 Solvers
-
Get the elements of diagonal and antidiagonal for any m-by-n matrix
513 Solvers
-
Return fibonacci sequence do not use loop and condition
855 Solvers
-
Solve a System of Linear Equations
14412 Solvers
More from this Author3
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
In the question description, adrOut = '950 Blue Hill Ave.Dorchester, MA 2124' specifies the value as 950, but in adrIn = '959 Blue Hill Ave.Dorchester, MA 2124(42.29189440573543, -71.0887162019496)', the value is 959. Please correct this discrepancy to avoid confusion.