Question: No iterations or Conditionals / MATLAB Write the code to satisify the following directions. For each part, store your answer in the variable that is
No iterations or Conditionals / MATLAB


Write the code to satisify the following directions. For each part, store your answer in the variable that is specified within the parantheses. Ex. Add 1+1. (GT) That means store the value of 1+1 in the variable GT, like so: Ex. GT=1+1; For some of the problems, you can produce two answers with one function call. For instance, if we wanted you to find the minimum number of a vector and the position of the minimum, the problem would be structured as: A=[B=[] However, when you write your answer, change these two lines into one line to use the 2 outputs of the min function like: [A,B]=min(vec) \%For each of these problems, although you can see the values in the variables and could technically hardcode the answers, \%you are encouraged to figure out which of the functions covered can help you accomplish the task. \% Given the string in "str1", produce of vector of all of the starting indices of the substring in str2 (A) A=[]; \%Given the substring in 'str2', replaces all of the occurences of 'str2' in 'str1' with the new substring in 'str3' (B) B=[] \$Capitalize the string in 'str1' (C) C=[]; \%5plit the string in 'str1' into two parts based on a space. The first part should be everything before the space (D), \%and the second part should be the space and everything afterwards (E) D=[]; E=[] \%FFind the character that has an ASCII value corresponding to the double in 'num' (F) F=[]; G=[]; H=[]; YGiven 'str1' and 'str2', produce back a logical true or false on if they are the same string (case sensitive) (I) I=[]; \%PProduce back a singluar true or false on if 'str2' is contained within 'str1' (J) J=[]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
