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.
How do you create a column vector with elements 1, 2, 3?
Remember to use semicolons.
What is the command to create a matrix with values 1 to 9?
Use semicolons for rows.
Which command is used to create a 3x3 matrix of zeros?
Focus on the function name that symbolizes emptiness.
True or False: Indexing in MATLAB starts from 0.
Think of how you would count elements in MATLAB.
Given a matrix C = [1 2; 3 4; 5 6; 7 8], write the commands necessary to extract the second and third rows and the first column into a new matrix.
Recall how to use indexing with ranges.
Create a 4x4 matrix filled with ones, but replace the diagonal to be filled with zeros. Describe the commands.
Think about how to specifically target diagonal elements in a matrix.
5 more questions in this section. Enroll free to practise them all.
Enroll free