The color, marker, and line-style that correspond to this plot: plot(x, y, "cd--")
What are cyan (color), diamond (marker), and dashed (line-style)?
The Matlab notation to set x equal to the element in the 8th column and 3rd row of a A (assume A is a 10x10 matrix)
What is x = A(3,8)?
The if-statement used to set y equal to 1 if x is a positive number and y = -1 if x is a negative number
What is:
if x > 0 / y = 1 / elseif x < 0 / y = -1 / end
?
The dependent variable of plot(t,h)
What is h?
The command used to transform a row array into a column array, and vice-versa
What is transpose()?
' is acceptable as well
The alternative way to write x>10 && x<20
What is and(x>10,x<20)?
Or, what is ~(x<=10||x>=20)?
What is hold on?
The Matlab command/notation to flip/reverse an array, A (that is, if A goes from 1 to 5, this would make it go from 5 to 1)
What is fliplr(A)? Or, what is A(end:-1:1)?
The while-loop equivalent to a for loop going from x=1:100 (include the line of code needed before and within the while-loop)
What is
x = 1;
while x <= 100
x = x + 1;
...
The command used to close EVERY open figure
What is close all?
The Matlab notation to switch the 4th column and 6th column of a 10x10 matrix A
What is A(:, [4, 6]) = A(:, [6, 4])?
Mystery spot...
If you are in 1st place, you now have 100 points less than 2nd place. If you are not in first place, you now have 100 points more than first place!
The Matlab command to generate a logaritmic plot of x and y
What is loglog(x,y)
The notation to concatenate the fifth and sixth columns of a 10x10 matrix B to the end of a 10x8 matrix A to make it a 10x10 matrix as well
What is A(:, [9, 10]) = B(:, [5, 6])
The first line of code for a function that accepts variables "time" and "drag" and outputs variables "velocity", "acceleration", and "distance". (Call the function "jeopardy")
function [velocity, acceleration, distance] = jeopardy(time, drag)