Question: matlab programing, declaration is a online upload of declaration of independence Problem Summary A character array called declaration is provided by the template. a. Convert
matlab programing, declaration is a online upload of declaration of independence 
Problem Summary 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 letters are between 65 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 lower() and upper() in this problem. X Problem 3 solution submitted (max: Unlimited) | View my solutions A character array called declaration is provicded by the template. a. Convert the character array into a numerical array of ASCII valuss by multiplying it by 1 or by using the double() functicon. b. Determine how many capital letters are in the text. (The ASCII codes for capital lettera are between 65 and 90.) c. Convert the capital letters to lowercase by adding 32 to their ASCII codea. (But do not modify the lowercaae letters.) Call the modified numerical array ascii_lower. d. Convert the modified anay back to text using the chari) function. Call the resulting character array declaration_lawer. NOTE: You may nol use Ihe buill-in funclions lower() and upper) in this problem.- Script MATLAB Documentation C Reset 1 laad dec laration.nat 3 ascii_vals - [): 4 num_capitals - 0; Kuse a relational cperation to determine how nany ASCII cndes lie between 65 and 98, inclusive Smultiply the character array by 1 to convert to nunerical array declaration_lower - []; Make this the nodified char array with all lower case letters Run Script
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
