subject

Write a function buildstr that will receive a character and a positive integer n. it will create and return a cell array with strings of increasing lengths, from 1 to the integer n. it will build the strings with successive characters in the ascii encoding test run of your function > > buildstr('a',4) ans = 1×4 cell array {'a'} {'ab'} {'abc'} {'abcd'} > > buildstr('c',4) ans = 1×4 cell array {'c'} {'cd'} {'cde'} {'cdef'} ***you have to use your problem solving skills to solve this, given the following hints***: 1. creating a cell array of strings str_array = {'a', 'ab'} 2. ascii encoding 'b' can be obtained by doing char('a'+1) 3. contatenating strings together using strcatopens in new tab strcat('a','b') = 'ab' strcat('ab', 'c') = 'abc'

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:20
How can you tell if someone sent you a text message to your email instead of a email
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Which finger presses the h key on the keyboard? index finger on the left hand pinky finger on the right hand index finger on the right hand thumb on the left hand
Answers: 1
question
Computers and Technology, 24.06.2019 13:50
What does code do? a creates a text box that says "solid black" b creates a black border of any width c creates a black border 1 pixel wide
Answers: 1
question
Computers and Technology, 24.06.2019 17:40
When analyzing data sets, such as data for human heights or for human weights, a common step is to adjust the data. this can be done by normalizing to values between 0 and 1, or throwing away outliers. for this program, adjust the values by subtracting the smallest value from all the values. the input begins with an integer indicating the number of integers that follow. ex: if the input is 5 30 50 10 70 65, the output is: 20 40 0 60 55
Answers: 1
You know the right answer?
Write a function buildstr that will receive a character and a positive integer n. it will create and...
Questions
question
Mathematics, 07.12.2020 23:40
question
History, 07.12.2020 23:40