Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is the result of A(1,:) if A is a 3x3 matrix?
Think about how MATLAB accesses entire rows.
If A(:,1)=[], what happens to the matrix?
Consider what the empty vector does.
What does the colon operator do in MATLAB?
Think about its role in indexing.
True or False: The command A(:,2)=[] deletes the second column of matrix A.
Recall what setting a column to an empty vector does.
Given a matrix A of size 5x5, use the colon operator to extract a matrix consisting of rows 3 to 5 and columns 1 to 3.
Think about how you define the range for rows and columns.
You have a matrix A that is 10x10. How would you delete both the second row and fourth column in one go?
Consider the sequence of operations you have learned.
5 more questions in this section. Enroll free to practise them all.
Enroll free