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 arrayOn 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!