hello quizlet
Home
Subjects
Expert solutions
Create
Study sets, textbooks, questions
Log in
Sign up
Upgrade to remove ads
Only $35.99/year
M2 Quiz Questions
Flashcards
Learn
Test
Match
Flashcards
Learn
Test
Match
Terms in this set (20)
Consider the following array:
dataTrial1 = [28.3, 29.1, 28.4, 29.0, 28.6, 28.7, 28.7, 28.8];
What is the value of the following command?
dataTrial1(7:-2:2)
ans = 28.7000 28.6000 28.4000
What is the value of timeLapsed after executing the following commands?
timeLapsed = [15, 18, 13, 20, 14, 20, 21, 22, 17];
timeLapsed(9:12) = 11;
15 18 13 20 14 20 21 22 11 11 11 11
What is the correct way to access the fourth element of the array thisArray?
thisArray(4)
Consider the following array:
dataTrial1 = [28.3, 29.1, 28.4, 29.0, 28.6, 28.7, 28.7, 28.8];
What is the value of the following command?
dataTrial1([6, 2, 7])
ans = 28.7000 29.1000 28.7000
Given theArray = [3, 5, 6, 10, 2, 1], which of the following commands create an array with 3rd and 4th elements of theArray.
a) All of the above
b) newArray = theArray(3:4);
c) newArray = theArray([3,4]);
d) newArray = [0, 0];
newArray(1) = theArray(3);
newArray(2) = theArray(4);
a) All of the above
What is the size of the following array?
v = [17; 3; 9; 19; 16; 20; 14];
7x1
Which of the following statement is NOT true about a scalar variable?
A scalar variable has zero as one of its dimension.
Consider the following array:
dataTrial1 = [28.3, 29.1, 28.4, 29.0, 28.6, 28.7, 28.7, 28.8];
What is the value of the following command?
dataTrial1(end-5:end-2)
ans = 28.4000 29.0000 28.6000 28.7000
What is the result of the following commands?
x = [1:3.4; -6:3.5:0.5];
size(x)
error
What is the result of the following command?
u = 10:1;
u becomes an empty vector.
What are the dimensions of the following array?
A =2 2 5 6 4
3 8 2 4 1
2 6 8 5 3
3x5
Given originalArray = [1, 10, 20, 40], what is the value of newArray after the following command?
newArray = originalArray * 2;
[2, 20, 40, 80]
What command will construct an array that decreases by 3 starting from 50 and ending at 32?
[50:-3:32]
Consider the following array:
dataTrial1 = [28.3, 29.1, 28.4, 29.0, 28.6, 28.7, 28.7, 28.8];
What is the value of the following command?
dataTrial1(2:4)
ans = 29.1000 28.4000 29.0000
Given an array A = [1 2 3; 4 5 6; 7 8 9], what is the result of the following command A(1:2,1:2)?
[1,2;4,5]
Which of the following examples concatenates column vectors trialOne, trialTwo, and trialThree into a new column vector allTrials?
allTrials = [trialOne; trialTwo; trialThree]
What statement does NOT transpose the row array
pounds = [21, 14, 19];
into a column array?
pounds_transpose = pounds"
What is the value of the array
initialArray = [1, 2, 3, 4]
after executing
i = 7;
initialArray(i) = 2;
initialArray = 1 2 3 4 0 0 2
sqrt is a built-in function that calculates the square root of its input argument.
What is the result of the following command?
numArray = [4:9].^2;sqrt(numArray)
ans = 4 5 6 7 8 9
Which of the following is NOT an element-wise operation?
x * y
Other sets by this creator
Aerospace Fundamentals Ch 6&7
28 terms
Aerospace Fundamentals Summary of Articl…
13 terms
Aerospace Fundamentals Key Equations
21 terms
Aerospace Fundamentals Exam 3
55 terms
Verified questions
spanish
Say what the following people are doing now that is different from what they normally do. Follow the model. Modelo: Generalmente, Juan maneja despacio. Ahora está manejando rápido. T.iliana cruza la calle con su mamá todos los días. Pero ahora no ____ la calle porque está sola.
spanish
¿_________________________ te llamas?
vocabulary
Identify each underlined word by writing above it *PN* for *predicate nominative* or *PA* for *predicate adjective*. Add *C* if it is part of a compound. Kasdan's script for *Return of the Jedi* led to a film that is $\underline{\text{full}}$ of adventure and colorful characters.
literature
Why does Gawain decline the Green Knight's invitation to celebrate the new year together at the end of the poem?
Other Quizlet sets
SPED 332 - Ch. 5/6
10 terms
Speech Sound Disorders
46 terms
Purposive Communication Lesson 1:4
72 terms