Question
MATLAB QUESTIONS I need it ASAP Answers for A,B,C,D,E,F,G,H,I,J %These are given variables/values that will be used in the problems str1 = 'matlab is amazing!'
MATLAB QUESTIONS
I need it ASAP Answers for A,B,C,D,E,F,G,H,I,J
%These are given variables/values that will be used in the problems
str1 = 'matlab is amazing!'
str2 = 'ma'
str3 = '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)
str1 = "Hello World";
str2 = "o";
A = [];
%Given the substring in 'str2', replaces all of the occurences of 'str2' in 'str1' with the new substring in 'str3' (B)
B = 's[]';
%Capitalize the string in 'str1' (C)
C = [];
%Split 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 = [];
%Find the character that has an ASCII value corresponding to the double in 'num' (F)
F = [];
%Given the double in 'num', create the string/character vector version of this number. Ex: the number 723 should become the character vector '723'. (G)
G = [];
%Given the variables 'name' and 'age', using the sprintf function, create the sentence 'My name is and I am years old.' (H)
H = [];
%Given 'str1' and 'str2', produce back a logical true or false on if they are the same string (case sensitive) (I)
I = [];
%Produce 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
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