Question: USE MATHLAB AND ANSWER THEM ALL PLEASE Summer 206 APTTEC2600 A 1. Maltiple choice. Each question is worth points. There is onls question. [51 D
Summer 206 APTTEC2600 A 1. Maltiple choice. Each question is worth points. There is onls question. [51 D Which following is a valid ile name in MATLAB? A) lab 2 B) lab2 C) lab-2 D) 2lab E) LAB 2 2) Which of the following is a MATLAB expression for t estingx is outside the range from 4 to 10 (the range includes 4 and 10)? A) 4x &&10 E) none of the above F) cannot be expressed in MATLAB 3) Given that the matrix Aa 1 2 3: 4 5 61 and a vector b b-(5 6 71, what is the output of b. A? 5 12 21 20 30 42 A) 38 B) 92 C) 30 36 42 30 36 42 D) 75 102 105 E) error Page 1 of 12 APTTEC2600 A Summer 2016 4) Given polynomial y 3 +2 -2t, which of the followin vector can represent the polynomial coefficients in MATLAB? A) p13 1 -2 B) p-13: 1: -2i1 C) p 13 0 1-21 E) p (3 0 1 -2 0] F) p13; 0; 1: -2: 01 5) Consider the the following function fune: function a univ(b, a) global X At the MATLAB prompt you type the commands shown below. What is the result? sclear >>global X >> [2,4]; y univ (1, 5): s>x A) 6 4 2 B)246 C) 6 2 4 D)4 26 E) 2 6 4 Summer 2016 a correction. If there is no mistake, write down 'No error'. [101 (a) x; y-3 sf sin(x) Xcos (y) (b)>at -131 5 8; 65 8 9 36711 >mat [mat [1 2 3 41'1 (c) x9y 10 fprintfl'The nunbers are not equal. ' fprintf( The numbers are the sane.') (d) natszeros (3:3) (e) > matsrand (4, 4) vli, 2: 3; 41: prod-nat v
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
