Question: matlab A character array called declaration is provided by the template a. Convert the character array into a numerical array of ASCII values by multiplying

matlab matlab A character array called declaration is provided by the template a.

A character array called declaration is provided by the template a. Convert the character array into a numerical array of ASCII values by multiplying it by 1 or by using the double() function b. Determine how many capital letters are in the text. (The ASCII codes for capital dotters are between 66 and 90) C. Convert the capital letters to lowercase by adding 32 to their ASCII codes. (But do not modify the lowercase letters.) Call the modified numerical array ascii_lower. d. Convert the modified array back to text using the char() function. Call the resulting character array declaration_lower. NOTE: You may not use the built-in functions tower) and upper() in this problem Script e Reset DO MATLAB Documentation 1 load declaration mat ascii_vals = declaration+1; Smultiply the character array by 1 to convert to numerical array 4 num_capitals = 0; use a relational operation to determine how many ASCII codes lie between 65 and 90, inclusive declaration lower = 11: Make this the modified char array with all lower-case letters Run Scpt

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!