Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

More Books

Students also viewed these Databases questions