Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please do 35,37,41,42 ONLY. This is in matlab format. 40. 41. Create a matrix B

ID: 3685298 • Letter: P

Question

Please do 35,37,41,42 ONLY. This is in matlab format.

40. 41. Create a matrix B by extracting the first column of matrix A. Create a matrix C by extracting the second row of matrix A. se the colon operator to create a matrix D by extracting the first through third columns of matrix A. Create a matrix F by extracting the values in columns 2, 3, and 4, and com- bining them into a single column matrix. Create a matrix G by extracting the values in columns 2, 3, and 4, and com- bining them into a single row matrix. 42. Use the colon operator to create a matrix D by extracting thet through 43. 44.

Explanation / Answer

35.%This program will generate a table of conversions from centimeters to inches.

%The user allowed to enter the centimeter value.

%The values will be incremented by 2centimeters with a % total of 25lines printed.

%User input is equal to the variable Cent_intial.

Cent_intial=input(‘enter the intial length in centimeters: ’)

%calculate largest centimeter value to be printed.

Cent_final=Cent_final+5*9;

%increment centimeter value by 2

Centimeter=[Cent_intial:2:Cent_final];

%Convert centimeters to inches

inches=centimeters*0.39370;

%Table of values

table=[centimeters ;inches];

%Format the table

fprintf(‘conversion of centimeters to inches ’)

fprintf(‘centimeters       inches ’)

fprintf(’%6.3f       %6.3f ’table) .

37. Note:Apply this formula and follow the above steps to write a program as it is

d = @(t) .5*9.8*t.^2;
t = 0:.5:10;
[t',d(t)'].

41.A = rand(3,2)//This is the matrix size.

42. A(1:3) % Extract first thrugh third column