Bird
0
0

Consider the MATLAB code:

medium📝 Debug Q14 of 15
MATLAB - Linear Algebra
Consider the MATLAB code:
A = [1 2 3; 4 5 6];
N = null(A);
disp(size(N));

What is the correct output of size(N)?
A[3 1]
B[3 2]
C[2 1]
D[2 3]
Step-by-Step Solution
Solution:
  1. Step 1: Determine matrix size and rank

    Matrix A is 2x3. Rank is 2 because rows are independent.
  2. Step 2: Calculate null space dimension

    Null space dimension = number of columns - rank = 3 - 2 = 1. So null(A) returns a 3x1 matrix.
  3. Final Answer:

    [3 1] -> Option A
  4. Quick Check:

    Null space size = columns x (columns - rank) [OK]
Quick Trick: Null space columns = cols - rank [OK]
Common Mistakes:
  • Confusing rows and columns in size
  • Forgetting null space dimension formula
  • Expecting null space to be square

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More MATLAB Quizzes