Problem 43662. Use R2016b Text Manipulations to Fix These Addresses (Part 3)
We have a series of addresses like the following which we'd like to reformat. Each of the addresses lacks a space and a comma between the street name (which always ends with a period) and the neighborhood/city name. Can you insert a space between these?
Example:
Input: adrIn = '950 Blue Hill Ave.Dorchester, MA 02124';
Output: adrOut = '950 Blue Hill Ave., Dorchester, MA 02124';
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 commentsGroup

Computer Games III
- 13 Problems
- 2 Finishers
- Sokoban: Puzzle 10.45
- Toads and Frogs Puzzle
- Toads and Frogs Puzzle 2
- Win all the time!
- PACMAT 06 - Optimized Ghosts, Equal Speed, Inf Lives; Interactive Download
- PACMAT 07 - Optimized Ghosts, PAC 2X Ghost Speed, 4 Lives; Interactive Download
- PACMAT 08 - Awesome Tunneling Ghosts, 2X Speed, 6 Lives, Game Download
- PACMAT 09 - Awesome Tunnelling Ghosts, Equal Speed, 20 Lives, Game Download
- Capture the flag(s)
- BLOCK x3 (Version 1)
- BLOCK x3 (Version 2)
- BLOCK x3 (Version 3)
- BLOCK x3 (Version 4)
Problem Recent Solvers99
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!