Industry-relevant training in Business, Technology, and Design to help professionals and graduates upskill for real-world careers.
Fun, engaging games to boost memory, math fluency, typing speed, and English skillsβperfect for learners of all ages.
Test your understanding with targeted questions related to the topic.
Question 1
Easy
What does zeros(3,3)
produce?
π‘ Hint: Think about what the function `zeros` does.
Question 2
Easy
What function would you use to create a square matrix of size 2 filled with ones?
π‘ Hint: Remember the name of the function for ones and check how the size is defined.
Practice 4 more questions and get performance evaluation
Engage in quick quizzes to reinforce what you've learned and check your comprehension.
Question 1
What does the function ones(3,2)
return?
π‘ Hint: Think about what the `ones` function creates.
Question 2
True or False: The function eye(m,n)
returns an m-by-n matrix filled with random numbers.
π‘ Hint: Recall what identity matrices are.
Solve 1 more question and get performance evaluation
Push your limits with challenges.
Question 1
Create a 5x5 identity matrix and then create a 3x3 matrix filled with zeros. Combine them into a single matrix with the identity matrix on top of the zero matrix.
π‘ Hint: Think about how to concatenate matrices both vertically.
Question 2
From the vector v = [10, 20, 30], create a diagonal matrix, and then replace the first diagonal element with 15. What is the new matrix?
π‘ Hint: Use the `diag` function and understand how indexing works.
Challenge and get performance evaluation