Other
Functions
Complex Numbers
Plotting
MATLAB Functions
100

When you use a for loop

What is when the number of iterations of the loop is known?

100

Create a vector data containing values 1 through 6 with increments of 2

What is data = 1:2:6 ?

100

MATLAB command for the real part of complex number z

What is real(z)?

100

The MATLAB command to create an array called info containing the data from the file 'information.xslx'

What is info = xlsread('information.xslx')?

100

The MATLAB command to find the minimum element in each column of the matrix A

What is min(A)?

200

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?

200

The command to find standard deviation of a vector data using MATLAB’s built-in function 

What is std(data)?

200

The form of this:

r < φ   

What is polar form?

200

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') ?

200

The MATLAB command for the maximum value in each row of the matrix A

What is max(A')?

300

Set the variable data as all the values in the fifth column of a given matrix info

What is data = info(:,5)?

300

What is the MATLAB command to convert degrees to radians

What is deg2rad()

300

The MATLAB command for the complex conjugate of z

What is conj(z)?

300

The MATLAB command to plot data vs. time using a solid magenta line of diamonds

What is plot(time, data, '-md')?

300

The MATLAB command for the overall minimum of the entire matrix A

What is min(min(A))

400

How would you print "Hello, students!", where "students" is a string stored in variable, name

What is fprintf("Hello, %s!",name)

400

The MATLAB command that prompts the user to input a string into the variable variable_name 

What is variable_name = input(‘Prompt’,’s’)?

400

Complex conjugate of z = -re-jφ

What is z = -re?

400

What MATLAB command lets you plot multiple equations on the same figure

What is hold on

400

MATLAB command to find the overall sum of the matrix B.

What is sum(sum(B))?

500

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)?

500

FREE POINTS

YAYY

500

Euler's Identity

What is eiθ = cosθ + isinθ ?

500

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) ?

500

Write the command that inputs a txt file into a matrix

load()