Question: please do a and b in matlab A character array called declaration is provided by the template, a. Extract the substring containing the 192nd through
A character array called declaration is provided by the template, a. Extract the substring containing the 192nd through 211th characters of the array and store them in an array called unalienable. b. Change the first occurrence of the word Happiness in declaration to hePPYNESS (This is how you might write the word happiness for use as a password.) After doing parta, you should be able to figure out what range of indices to replace. I NOTE: There is no need to use string manipulation functions like extractBetween and strrep in this problem. In fact, they will not pass the tests, because they don't produce the result that the grader expects. Since declaration is a character array, the problem can be done with simple indexing
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
