Question: Write a Matlab function to satisfy these conditions. Do not use conditionals. A sentence to be converted to giraffe case The sentence converted to giraffe

Write a Matlab function to satisfy these conditions. Do not use conditionals.Write a Matlab function to satisfy these conditions. Do not use conditionals.

A sentence to be converted to giraffe case The sentence converted to giraffe case strrep () You might have heard of camel case, the naming convention typically used when naming variables and functions in MATLAB, but have you ever heard of giraffe case? Probably not, since we just made it up! Write a function that converts a given phrase to giraffe case according to the following rules: Capitalize all letters that occur at the end of a word, and make all other letters lowercase. If 'giraffe' appears in the string with any capitalization, capitalize all its letters ('GIRAFFE'). Remove all spaces and non-letter characters. For instance, the string 'Giraffes are just long horses!' would be converted to Punctuation may occur anywhere in the string. ' giraffe' will not appear in a string more than once. 'giraffe' may be a substring of another word so if occurs in the string, it should become 'GIRAFFEzonE'. Each word will be separated by at least one space. The string will always begin with a letter. A sentence to be converted to giraffe case The sentence converted to giraffe case strrep () You might have heard of camel case, the naming convention typically used when naming variables and functions in MATLAB, but have you ever heard of giraffe case? Probably not, since we just made it up! Write a function that converts a given phrase to giraffe case according to the following rules: Capitalize all letters that occur at the end of a word, and make all other letters lowercase. If 'giraffe' appears in the string with any capitalization, capitalize all its letters ('GIRAFFE'). Remove all spaces and non-letter characters. For instance, the string 'Giraffes are just long horses!' would be converted to Punctuation may occur anywhere in the string. ' giraffe' will not appear in a string more than once. 'giraffe' may be a substring of another word so if occurs in the string, it should become 'GIRAFFEzonE'. Each word will be separated by at least one space. The string will always begin with a letter

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!