When you use a for loop
What is when the number of iterations of the loop is known?
Create a vector data containing values 1 through 6 with increments of 2
What is data = 1:2:6 ?
MATLAB command for the real part of complex number z
What is real(z)?
The MATLAB command to create an array called info containing the data from the file 'information.xslx'
What is info = xlsread('information.xslx')?
The MATLAB command to find the minimum element in each column of the matrix A
What is min(A)?
True or False, the multiplication of two matrices A and B can be carried out only if the number of rows
in A is equal to the number of columns in matrix B.
What is False?
The command to find standard deviation of a vector data using MATLAB’s built-in function
What is std(data)?
The form of this:
r < φ
What is polar form?
Give the MATLAB command to create a legend on a graph with the third line being labeled as Three, the first line being labeled One, and the second line being labeled as Two
What is legend('One', 'Two', 'Three') ?
The MATLAB command for the maximum value in each row of the matrix A
What is max(A')?
Set the variable data as all the values in the fifth column of a given matrix info
What is data = info(:,5)?
What is the MATLAB command to convert degrees to radians
What is deg2rad()
The MATLAB command for the complex conjugate of z
What is conj(z)?
The MATLAB command to plot data vs. time using a solid magenta line of diamonds
What is plot(time, data, '-md')?
The MATLAB command for the overall minimum of the entire matrix A
What is min(min(A))
How would you print "Hello, students!", where "students" is a string stored in variable, name
What is fprintf("Hello, %s!",name)
The MATLAB command that prompts the user to input a string into the variable variable_name
What is variable_name = input(‘Prompt’,’s’)?
Complex conjugate of z = -re-jφ
What is z = -rejφ?
What MATLAB command lets you plot multiple equations on the same figure
What is hold on
MATLAB command to find the overall sum of the matrix B.
What is sum(sum(B))?
MATLAB syntax to calculate the following when x is a vector of 350 points.
f = (x3+5x-2)/(x2+2)
What is f = (x.^3+x.*5-2)/(x.^2+2)?
FREE POINTS
YAYY
Euler's Identity
What is eiθ = cosθ + isinθ ?
You wish to plot four subplots arranged in a 2x2 grid in a single Figure window. Give the MATLAB command would you use to plot on the bottom-left subplot.
What is subplot(2,2,3) ?
Write the command that inputs a txt file into a matrix
load()