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 letters are between 65 and 90.) c. Convert the capilal letters to lowercase by aciding 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. Cal the resulting character array declaration_lower, NOTE: You may not use the built-in functions lower) and upper() in this problem. Script C Reset MATLAB Documentation load declaration.mat ascii_vals Edeclaration*1; multiply the character array by 1 to convert to numerical array num_capitals = sun(ascii_vals >= 65 & ascii_vals =65 & ascii_vals

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!