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

% Create a variable that is a row vector with the following elements: % squarero

ID: 2079869 • Letter: #

Question

% Create a variable that is a row vector with the following elements: % squareroot (5.2^3), 6.71*10^3, (3+5.1^2) *cosd(53), 15.8, nthroot(90, 3), and % (sin(pi/3))/(tand(20)). x= [ squareroot (5.2^3) 6.71*10^3 (3+5.1^2)*cosd(53) 15.8, nthroot(90, 3)(sin(pi/3))/(tand(20)) % Define the variables and c= 4.5 and d= 2.8, and then use them to create a % column vector (assign it to a variable named t) that has the following % elements: d^2, c, (c+d), c^d, and d. c(4.5) d (2.8); [7.84 4.5 .3 7.452 .8] % Create a variable g that is a row vector in which the first element is 3 % and the last element is 27, with an increment of 4 between the elements % (3, 7, 11, ...27). 3:4:27 % Create a variable h that is a row vector with eight equally spaced % elements in which the element is 68 and the last element is 12. a=68; b=12; c=8; disp('code for the required question is') h=linspace(a, b, c); H=a:-c:b

Explanation / Answer

step1 - Type the matlab code and save it in a folder for example "C:Userscheggwkwsx.m"

Step2 - Go to command prompt and type the following

publish('C:Userscheggwkwsx.html')

Step3- the matlab responds by creating html file and points to location at ans='C:/Users/chegg/html/wkwsx.html'