Answered step by step
Verified Expert Solution
Link Copied!

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)

image text in transcribed

(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

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

Database In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

More Books

Students also viewed these Databases questions

Question

What are the liability issues when contracting for software?

Answered: 1 week ago