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 command would you use to access the element in the first row and second column of matrix A?
Which index represents the row, and which represents the column?
How would you access the entire third row of matrix A?
Remember the colon operator means 'all'.
How do you access the last element of matrix A?
Consider what 'end' represents in the context of indexing.
Using the command A(:,1), what elements are selected?
Think about the purpose of the colon operator in this command.
Given a matrix A = [1 2 3; 4 5 6; 7 8 9], create a new matrix B that includes rows 1 and 2 and all columns. What is the result?
Use the colon operator to select all columns.
Begin with matrix C = [10 20; 30 40; 50 60]. If you need only the second row, what command would you use?
Remember to pull the second row by referencing it specifically.
5 more questions in this section. Enroll free to practise them all.
Enroll free