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.
Create a column vector in MATLAB using the numbers 2, 4, and 6.
Remember to use semicolons to separate the elements.
What command would you use to create a 2x2 identity matrix?
Think about the function that generates identity matrices.
What command would you use to create a row vector with values from 1 to 5?
Consider how vectors can be defined.
True or False: The colon operator can be used to create a vector with values incremented by a specified step size.
Think about how we create ranges in programming.
Suppose we have matrix D = [1 2; 3 4; 5 6; 7 8]. Write the MATLAB commands needed to extract the 2x2 square located in the bottom left corner.
Focus on identifying the rows and columns to extract the desired sub-matrix.
Create a 5x5 matrix filled with random numbers and then extract the second row.
Consider how to generate random numbers and extract a row using indexing.
6 more questions in this section. Enroll free to practise them all.
Enroll free