Question: On matlab please Write a function, last_name, that accepts a character array representing a person's full name, and returns the person's last name. For purposes
On matlab please
Write a function, last_name, that accepts a character array representing a person's full name, and returns the person's last name. For purposes of this exercise, the name can be assumed to be in this format: . Last, First (e.g., 'Toney, James') A reasonable approach to this problem is as follows: Find the position of the comma using the find() function. Return the portion of the array from the first character to the one before the comma
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
