
1MEMS4 - Week 1: Matlab Basics
Authored by Anneliese Walsh
Computers
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
6 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following will create a vector with the numbers 1,2,3(select all that are correct):
myVector=[1,2,3];
myVector(1,2,3)=[1,2,3];
myVector=[1 2 3];
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Considering the vector myVector=[1,2,3],
which statement will multiply the last number by 6 (select all that are correct):
myVector(:)=myVector(:)*6
myVector(1,3)=myVector(1,3)*6
myVector(:,3)=myVector(:,3)*6
3.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Considering the vector myVector=[1,2,3],
which statement will divide all the numbers by 2 (select all that are correct):
myVector=myVector/2
myVector(:)=myVector(:)/2
myVector=myVector./2
4.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which statements will create a 3x3 matrix filled with 1s (select all that are correct):
myMatrix(3,3)=1
myMatrix=ones(3);
myMatrix=[1,1,1,1,1,1]
myMatrix=[1,1,1;1,1,1;1,1,1]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Considering the matrix myMatrix=[1,1,1;1,1,1],
which statement will multiply the element in the 1st row, 3rd column by 2:
myMatrix(3,1)=myMatrix(3,1)*2;
myMatrix=myMatrix(1,3)*2;
myMatrix(:)=myMatrix(:)*2;
myMatrix(1,3)=myMatrix(1,3)*2;
6.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which statements will create a 3x3 matrix filled with 1s (select all that are correct):
myMatrix(3,3)=1
myMatrix=ones(3);
myMatrix=[1,1,1,1,1,1]
myMatrix=[1,1,1;1,1,1;1,1,1]
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?