0
Q:

A function ______________

A) can be run in the command window by defining it in the window itself B) can be run in the command window by defining it in a cpp file
C) can be run in the command window by defining it in a script file D) can be run in the script file by defining it in the command window
 
Answer & Explanation Answer: C) can be run in the command window by defining it in a script file

Explanation: A function has to be saved as a M-file before it can be run in the command window. We will have to take MATLAB to the directory where it is saved and it will run the function from the directory itself.

View Answer Discuss

Category: Electronics & Electrical MCQs
Sub Category: MATLAB Mcqs

318
Q:

Name the functions used, for multiplication and division of two polynomials in MATLAB.

A) conv() and deconv() B) mult() and div()
C) conv() and div() D) mult and div
 
Answer & Explanation Answer: A) conv() and deconv()

Explanation: Multiplication in a time domain is convolution in a frequency domain. This is the reason for the existence of MATLAB functions conv(), for multiplication of signals, and deconv() for division of signals. There are no functions like mult() and div().

View Answer Discuss

Category: Electronics & Electrical MCQs
Sub Category: MATLAB Mcqs

255
Q:

The convolution of a function with an impulse function delayed to an instant 3 in time results in ____________

A) An advance in the function by 3 units in time B) The function itself
C) A delay in the function by 3 units in time D) Cannot be determined
 
Answer & Explanation Answer: C) A delay in the function by 3 units in time

Explanation: Not available for this question

View Answer Discuss

Category: Electronics & Electrical MCQs
Sub Category: MATLAB Mcqs

216
Q:

Matrix operations follow the rules of linear algebra and are not compatible with multidimensional arrays.

A) true B) false
 
Answer & Explanation Answer: A) true

Explanation: Matrix operations follow the rules of linear algebra and are not compatible with multidimensional arrays. The required size and shape of the inputs in relation to one another depends on the operation.

View Answer Discuss

Category: Electronics & Electrical MCQs
Sub Category: MATLAB Mcqs

179
Q:

The if-else structure does not allow ___________

A) Return statement B) End statement
C) Endif statement D) Break statement
 
Answer & Explanation Answer: D) Break statement

Explanation: The break statement is not allowed within an if-else structure, it is strictly for a loop structure. We can use the return statement and the end statement but the break statement will give an error.

View Answer Discuss

Category: Electronics & Electrical MCQs
Sub Category: MATLAB Mcqs

177
Q:

The end statement is given multiple times in _________

A) Multiple elseif B) Nested if
C) elseif D) if
 
Answer & Explanation Answer: B) Nested if

Explanation: We need to end each if structure within a nested if structure every time we give one. The end command should be placed after the end of each if structure or MATLAB will give an error.

View Answer Discuss

Category: Electronics & Electrical MCQs
Sub Category: MATLAB Mcqs

175
Q:

The convolution of a signal in time domain can be viewed as __________

A) Multiplication in z-domain B) Squaring in z-domain
C) Doubling the signal in z-domain D) Convolution in z-domain
 
Answer & Explanation Answer: A) Multiplication in z-domain

Explanation: Not available for this question

View Answer Discuss

Category: Electronics & Electrical MCQs
Sub Category: MATLAB Mcqs

163
Q:

Does the plot function take multiple arguments to a plot?

A) True B) False
C) Sometimes D) Only if the functions are in time domain
 
Answer & Explanation Answer: A) True

Explanation: The plot function can take multiple input arguments to plot multiple graphs. This is an inbuilt function so the nature of the function is, inherently, to take multiple arguments if the arguments are defined.

View Answer Discuss

Category: Electronics & Electrical MCQs
Sub Category: MATLAB Mcqs

155