MATLAB

FREE MATLAB MCQ Questions and Answers

0%

What is the use of the abs function in Matlab?

Correct! Wrong!

Explanation:
In MATLAB, the abs function is used to compute a number's magnitude or absolute value or an array of numbers.

In MATLAB, an array's index begins with

Correct! Wrong!

Explanation:
In MATLAB, arrays are 1-indexed, meaning that the first element of an array is at index 1. This differs from other programming languages like C and Python, which are 0-indexed, meaning that the first element of an array is at index 0. It's important to remember this when working with MATLAB arrays, as it can affect how you write your code and access array elements.

What is the return type of the function of the angle in MATLAB?

Correct! Wrong!

Explanation:
The angle function in MATLAB returns the phase angles of a complex input in radians.

What will be the output of atan2(-1,1) in Matlab?

Correct! Wrong!

How to clear the command window in Matlab?

Correct! Wrong!

In a fprintf statement, what character is used to print a new line?

Correct! Wrong!

Explanation:
MATLAB, the character \n is used to print a new line in a fprintf statement.

What does A = [1 0 2]; b = [3 0 7]; and c=a.*b; produce?

Correct! Wrong!