Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is Matlab quesiton (1) str1 = 'I have the most fun when I am coding!' vec1 = [4 8 2 9 4 0 10
This is Matlab quesiton
(1)
str1 = 'I have the most fun when I am coding!'
vec1 = [4 8 2 9 4 0 10 22 3 4]
str2 = 'ThIS is a TEsT OF THE GEORGIA tech EMERgENCY NOTIFICAtion SYSTEM!!!'
%Produce the quantity of 4's that are in vec1 (D) D = [ ];
(2)
(A) and (B) plz
\%These are given variables/values that will be used in the problems str1 = 'matlab is amazing!' str 2= 'ma' str 3= 'pe' num =68 name = 'Mirabel' age =15 \%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=[11] \%Given the substring in 'str2', replaces all of the occurences of 'str2' in 'str1' with the new substring in 'str3' (B) B=[ 'pelab is amazing!']Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started