Mistyped words are a regular occurrence in emails, texts, status updates, and the like. Many times, people send or post a second text with the correct word, usually preceded by an asterisk. In perhaps the most common case, the mistyped word contains all of the correct letters, but in the wrong order (e.g. 'I loev MATLAB').
In this problem, you are given two strings: (1) the original text and (2) the correct word(s), each preceded by an asterisk. Your function should output a cell array of the mistyped words that are being corrected.
Notes
Example
If
str = 'Which sword are mistyped in this srting?'; correct_words = '*words *string';
then
mistyped_words = {'sword','srting'};
Project Euler: Problem 3, Largest prime factor
147 Solvers
160 Solvers
Convert a numerical matrix into a cell array of strings
143 Solvers
Find a subset that divides the vector into equal halves
282 Solvers
85 Solvers