Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
How would you enter a matrix with elements 1, 2, 3, 4?
Remember to separate the rows with a semicolon.
What command would you use to access the element in the first row and second column of matrix A?
Think about the indexing format A(i,j).
What is the correct syntax to enter a matrix with elements 5, 6, 7 in the first row and 8, 9, 10 in the second row?
Focus on the use of brackets and the correct separators.
True or False: A column vector in MATLAB can be defined as A = [1; 2; 3]?
Think of how elements are stacked in a vertical format.
Create a 4x4 matrix filled with random integers from 1 to 10 and then extract the last two rows and last two columns.
Use the randi function to generate your matrix.
Given a matrix A = [2 7 1; 3 5 8; 9 4 6], delete the first row and then create a sub-matrix with the remaining rows and columns 1 and 3.
Remember, deleting a row affects the indexing of your sub-matrix.
6 more questions in this section. Enroll free to practise them all.
Enroll free