0
0
MATLABdata~5 mins

Arithmetic operators in MATLAB - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the + operator do in MATLAB?
The + operator adds two numbers or arrays element-wise.
Click to reveal answer
beginner
How do you perform element-wise multiplication in MATLAB?
Use the .* operator to multiply arrays element-wise.
Click to reveal answer
intermediate
What is the difference between * and .* in MATLAB?
* is matrix multiplication, while .* is element-wise multiplication.
Click to reveal answer
beginner
What operator is used for division in MATLAB?
The / operator performs matrix right division. For element-wise division, use ./.
Click to reveal answer
beginner
How do you calculate the power of a number in MATLAB?
Use the ^ operator for matrix power and .^ for element-wise power.
Click to reveal answer
Which operator performs element-wise addition in MATLAB?
A.*
B+
C^
D./
What does the operator ./ do?
AElement-wise multiplication
BMatrix division
CMatrix multiplication
DElement-wise division
How do you perform matrix multiplication in MATLAB?
A*
B./
C+
D.*
Which operator raises each element of an array to a power individually?
A.^
B.*
C^
D/
What is the result of 5 + 3 * 2 in MATLAB?
A16
B10
C11
D13
Explain the difference between matrix multiplication and element-wise multiplication in MATLAB.
Think about how you multiply matrices vs. multiplying each number separately.
You got /4 concepts.
    Describe how to perform division and power operations element-wise in MATLAB.
    Look for the dot before the operator for element-wise.
    You got /3 concepts.