1MEMS4 - Week 1: Matlab Basics

1MEMS4 - Week 1: Matlab Basics

University

6 Qs

quiz-placeholder

Similar activities

Data Structure

Data Structure

University

10 Qs

Graph

Graph

University

10 Qs

STSCI 2120: Lecture 1

STSCI 2120: Lecture 1

University

10 Qs

Matrix1

Matrix1

University

6 Qs

Pengenalan Pola 3: Dimensionality Reduction

Pengenalan Pola 3: Dimensionality Reduction

University

10 Qs

Introduction to Computer Science

Introduction to Computer Science

University

10 Qs

MS Core Java Quiz-1 2023

MS Core Java Quiz-1 2023

University

10 Qs

Computer Basics

Computer Basics

University

7 Qs

1MEMS4 - Week 1: Matlab Basics

1MEMS4 - Week 1: Matlab Basics

Assessment

Quiz

Computers

University

Hard

Created by

Anneliese Walsh

Used 3+ times

FREE Resource

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]