Search Header Logo

MATLAB Christmas

Science

University

Used 18+ times

MATLAB Christmas
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can I get the indices from all values equal to 27 in a matrix M?

M == 27

M = 27

M(M==27)

M(27)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Executing the following code returns:

a = [1:3:10] ;

size(a)

1

[10 1]

[1 4 ]

4

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following statements is correct?

Function 'clear' clears only the scalar variables, but does not clear arrays

Function 'clc' clears all variables

Function 'clc' clears only constants

Function 'clear a' clears all variables of the type array

None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following code:

M = [1,2,3; 4,5,6; 7,8,9];

numel(M)

3

3 3 3

9

3 3

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which statement is wrong

ans is automatically created by MATLAB when a calculation is not saved in a variable

ans is created by MATLAB when executing code without a semicolon

ans can have any datatype

ans is a variable name

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The output of cat=[‘cat’ ‘dog’] is

Cat&dog

Cat dog

Catdog

Cat

Dog

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command in MATLAB performs matrix operation on elements?

a’

a.*b

a^3

a_4

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Science