Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What command deletes the second row from matrix A?
Think about how to specify the row you want to remove.
What does A(:,1) = [] do?
Recall that indexing for columns is done using the first position in indexing.
What is the correct command to delete the second row from a matrix?
Focus on how rows are indexed in a matrix.
True or False: Using [] will add a new row to the matrix.
Remember what the empty vector does!
Given a matrix F = [5 4 3; 2 1 0; 7 6 5], delete the second row and add the row [9 8 7] at the second position.
Be careful about the order of operations!
Create a matrix G with three rows and three columns. Delete the first and third rows, then explain how you would restore the original matrix.
Think of how data layers work – keeping track is key!
4 more questions in this section. Enroll free to practise them all.
Enroll free