Vocab
Vectors
Loops
Hundley Facts
Vectors Cont.
100

a list of values, arranged either in a column or a row, that is a 1-D matrix (1*n or n*1)

vector

100
What is the output for x = [1,2,3,4]
x = 1 2 3 4
100
This type of loop repeats as a function of the values of a variable
For loop
100
What are the rules for naming variables.
-no more than 63 characters -1st char. a-z,A-Z -no upper and lower case -no blanks -be descriptive -camel backing or underscore
100
Write a code to generate a vector that starts from 0, ends at 1500, and counts by 3
x = [0:3:1500]
200
a type of matrix that varies by in the number of columns and rows (m*n or n*m)
array
200
What is the output for x = [2:2:10]
x = 2 4 6 8 10
200
This type of loop repeats if a logical condition is true
While loop
200
What variable naming method is preferred by Hundley?
Camelbacking
200
for the vector x=[1,2,3,4,5] what output results from median(x)
3
300
keeps track of the variables you have defined as commands that are executed can be set to display more about displayed variables by right clicking on the bar with the column labels.
workspace
300
What does the length command return when used on the matrix x = [1,2,3;1,2,3]
ans = 3
300
tests each case until one of the case expressions is true
switch
300
What is Hundley's rating on rate my professor?
1.9/5
300
What does the command max(x) return when dealing with the matrix x = [90,51,34,96,14]
ans = 96
400
used to save a command sequence and is created in the editing window
M-file
400
What input creates a 4 by 2 matrix.
x = [1,2,3,4;1,2,3,4]
400
what command tells a loop to stop
end
400
True or False. Hundley is incredibly helpful with all assignments.
False
400
This is an example of a command that creates a matrix with dimensions 4 rows and 3 columns.
x = [a b c;d e f;g h i;j k l]
500
symbols used to deal with matrices that follow the order of operation
operators
500
Given x=[3,2,1,0] and y=[5,6,7,8] what is the output of y'
[5] [6] [7] [8]
500
specifys a block of code to be executed
if
500
Will Hundley let you cross over people sitting on the end of the row even if you show up 5 minutes before the start of the test?
Nope
500
What does the vector x = [4:2:8;8:4:16;9:3:15] return
4 6 8 8 12 16 9 12 15