9 Given the strings school and School what function will com

9. Given the strings \"school\" and \"School\", what function will compare the two strings and return a true value. 10 Execute the matlab command \"words \"This is a string of characters that will be used in the quiz\'\". Show the function and argument that will return the number of characters in the string. 11 Using the \"words (r,c)\" variable, show the matlab statement that will extract the \"string\" characters from the \"words\" string. 12 Using the \"words (r,c)\" variable, show the matlab statement that will extract the phrase \"string of characters\" from the \"words\" string. 13. Show the matlab expression which will retrieve the \"23\" character from the string. 14 Show the matlab command which will change the whole\" words\" string to a \"null\".

Solution

9 Ans) \'strncmpi(str,str,n)\' is the function which returns true for given strings comparision, because it is case insensitive

10 Ans) \'length(words)\' is the function which returns number of characters in words string.

11 Ans) \'words(11:16)\' statement extracts the charcters \'string\' from words

12 Ans)  \'words(11:30)\' statement extracts the charcters \'string of characters\' from words

 9. Given the strings \

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site