Quizz1

Quizz1 - Name Student ID Quizz#1 Monday August 10 Circle...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Name: Student ID#: Quizz #1 Monday, August 10 Circle the correct answer(s) for each of the following 10 questions (there could be more than one correct answer for each question). Remember to answer the questions at the back of the page. 1. How can you create the following array at the command line of MATLAB? A = ± 3 - 1 6 - 2 ² a) A=[3 -1].*[1;2]; b) A=[1;2]*[3 -1]; c) A=[3,-1]*[1;2] d) A=[1;2].*[3,-1] 2. What is the determinant of the matrix A = 2 1 0 - 101 1 1 1 a) | A | = 2 b) | A | = 1 c) | A | = - 1 d) | A | =0 3. Which error is caused by the way a computer stores numbers on a Fnite set of bits? a) measurement error b) truncation error c) round-o± error d) modeling error 4. In a function Fle, the return command: a) stops the execution of the function and displays an error message, b) stops the execution of the function and assigns their current value to the output variables, c) Fnishes the current loop and then stops the execution of a function. 5. To create a 2 × 3 array A with random coe²cients between - 1 and 2, which MATLAB command should you use? a) A=rand(2,3) b) A=3*rand(3,2) c) A=3*rand(3,2)-1 d) A=3*rand(2,3)-1 6. In which operation is the relative error introduced by round-o± error the most signiFcant?
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/11/2011 for the course MAE 107 taught by Professor Rottman during the Summer '08 term at UCSD.

Page1 / 2

Quizz1 - Name Student ID Quizz#1 Monday August 10 Circle...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online