0
0
MATLABdata~10 mins

Matrix inverse (inv) in MATLAB - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to calculate the inverse of matrix A.

MATLAB
B = [1](A);
Drag options to blanks, or click blank then click option'
Ainv
Binverse
Cinvert
Dinver
Attempts:
3 left
💡 Hint
Common Mistakes
Using a non-existent function like 'inverse' or 'invert'.
Misspelling the function name.
2fill in blank
medium

Complete the code to compute the inverse of a 3x3 matrix M.

MATLAB
invM = [1](M);
Drag options to blanks, or click blank then click option'
Ainvert
Binv
Cinver
Dinverse
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect function names.
Trying to use functions that do not exist in MATLAB.
3fill in blank
hard

Fix the error in the code to correctly compute the inverse of matrix X.

MATLAB
Y = [1](X);
Drag options to blanks, or click blank then click option'
Ainvers
Binvert
Cinver
Dinv
Attempts:
3 left
💡 Hint
Common Mistakes
Using misspelled function names.
Using non-existent functions.
4fill in blank
hard

Fill both blanks to create a matrix inverse and multiply it by the original matrix.

MATLAB
invA = [1](A);
I = A [2] invA;
Drag options to blanks, or click blank then click option'
Ainv
B*
C+
D-
Attempts:
3 left
💡 Hint
Common Mistakes
Using addition or subtraction instead of multiplication.
Using incorrect function names.
5fill in blank
hard

Fill all three blanks to compute the inverse of matrix B, multiply it by vector v, and store the result in x.

MATLAB
invB = [1](B);
x = invB [2] v;
result = [3];
Drag options to blanks, or click blank then click option'
Ainv
B*
Cx
D+
Attempts:
3 left
💡 Hint
Common Mistakes
Using addition instead of multiplication.
Using wrong variable names.
Misspelling the inverse function.