Write a function called removenstates that removes all the u.s. states beginning with the letter n. the states are given as a string array. the states beginning with the letter n present in the sentence should removed from the scalar array. all state names are assumbed to be spelled exactly as given in u.s. statesopens in new tab. restrictions: the function removenstates should not use loops. removenstates should use the functions split, erase, strtrim and join. hint: first, the states starting with n should be removed from the string arrays, resulting in some string scalar entries that are empty. then empty entries should be removed from the scalar array. ex:

Solved
Show answers

Ask an AI advisor a question