Vector, Matrix, Array, and Cell

Vector, Matrix, Array, and Cell

12th Grade

10 Qs

quiz-placeholder

Similar activities

Arrays Review

Arrays Review

9th - 12th Grade

11 Qs

Final Review - Unit 1

Final Review - Unit 1

9th - 12th Grade

15 Qs

Array List

Array List

9th - 12th Grade

13 Qs

Graph Representation Quiz (AQA CS A-level)

Graph Representation Quiz (AQA CS A-level)

12th Grade

10 Qs

Programming - Arrays

Programming - Arrays

2nd - 12th Grade

10 Qs

Javascript

Javascript

10th - 12th Grade

15 Qs

Unity Programmer Certification

Unity Programmer Certification

10th - 12th Grade

15 Qs

Java - arrays and String methods

Java - arrays and String methods

9th - 12th Grade

12 Qs

Vector, Matrix, Array, and Cell

Vector, Matrix, Array, and Cell

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Susovan Jana

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a vector in MATLAB?

A vector in MATLAB is a two-dimensional array.
A vector in MATLAB is a string data type.
A vector in MATLAB is a mathematical function.
A vector in MATLAB is a one-dimensional array.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the two types of vectors that MATLAB allows creating?

Horizontal vectors and vertical vectors
Row vectors and column vectors
Scalar vectors and matrix vectors
Single vectors and multiple vectors

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax for creating a row vector in MATLAB?

Use curly braces with elements separated by spaces or commas.
Use parentheses with elements separated by spaces or commas.
Use angle brackets with elements separated by spaces or commas.
Use square brackets with elements separated by spaces or commas.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a matrix in MATLAB?

A matrix in MATLAB is a collection of strings
A matrix in MATLAB is a one-dimensional array
A matrix in MATLAB is a graphical representation of data

A matrix in MATLAB is a two-dimensional array of numbers.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can matrices be created with zeros and ones in MATLAB?

Combine the zeros() and ones() functions to create a matrix of zeros and ones
Use the twos() function to create a matrix of twos
Use the zeros() function to create a matrix of zeros and the ones() function to create a matrix of ones in MATLAB.
Manually input each element of the matrix using a loop

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can values be accessed from a matrix in MATLAB?

By using the 'print' function
By accessing the values directly without specifying indices
By multiplying the matrix by a scalar
By specifying the row and column indices within parentheses after the matrix variable name.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can any row or column be deleted from a matrix in MATLAB?

A(1,:) = 0; to delete a row and A(:,1) = 0; to delete a column

A(2,:) = []; to delete a column and A(:,2) = []; to delete a row
A(:,1) = []; to delete a row and A(1,:) = []; to delete a column
A(2,:) = []; to delete a row and A(:,2) = []; to delete a column

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?