Akanksha

Posted on

# Top 30 MATLAB Interview Questions with Answers multiple choice style

### 1. What does MATLAB stand for?

a) Mathematical Laboratory
b) Matrix Laboratory
c) Mathematical Analysis Tool Laboratory
d) Matrix Analysis Tool Laboratory

a) clear
b) reset
c) clc
d) close

a) disp
b) display
c) print
d) show

a) .mat
b) .script
c) .m
d) .txt

a) //
b) '''
c) #
d) %

b) importdata

### 7. What does the 'plot' function in MATLAB do?

a) Displays a histogram
b) Displays a scatter plot
c) Displays a line plot
d) Displays a bar plot
Answer: c) Displays a line plot

a) sqrt
b) squareroot
c) root
d) power

a) store
b) save
c) savefile
d) export

### 10. In MATLAB, what does 'ans' represent?

b) Analysis
c) Array Name Summary
d) Algorithmic Notation System

a) concat
b) join
c) merge
d) cat

a) 1
b) 2
c) 3
d) 4

a) linspace
b) range
c) sequence
d) numberseq

### 14. What is the purpose of the 'hold' function in MATLAB?

a) Holds the current plot
b) Holds the command window
c) Holds the workspace
d) Holds the variable value
Answer: a) Holds the current plot

a) mean
b) average
c) avg
d) m

### 16. What does the 'eye' function in MATLAB generate?

a) Identity matrix
b) Zero matrix
c) Random matrix
d) Ones matrix

a) rand
b) random
c) r
d) randint

*a) **
b) x
c) mul
d) matrixmul

a) 3
b) 4
c) 3.5
d) 4.5

a) max
b) maximum
c) maxvalue
d) findmax

### 21. What does the 'subplot' function in MATLAB do?

a) Creates subplots within a figure
b) Rotates the plot
c) Changes the plot color
d) Scales the plot
Answer: a) Creates subplots within a figure

a) |
b) ||
c) or
d) logicalor

### 23. What does the 'ones' function in MATLAB generate?

a) Matrix of ones
b) Matrix of zeros
c) Matrix of random numbers
d) Identity matrix

### 24. Which function is used to compute the inverse of a matrix in MATLAB?

a) inv
b) inverse
c) invmatrix
d) computeinverse

### 25. In MATLAB, what does 'pi' represent?

a) 3.142
b) 22/7
c) 3.1416
d) Mathematical constant π

a) strcat
b) concatenate
c) concatstr
d) joinstr

a) 4
b) 5
c) 4.5
d) 5.5

a) cell
b) createcell
c) cellarray
d) makecell

### 29. What does the 'fliplr' function in MATLAB do?

a) Flips the matrix left to right
b) Flips the matrix up to down
c) Flips the plot horizontally
d) Flips the plot vertically
Answer: a) Flips the matrix left to right

a) dot
b) dotproduct
c) vectorproduct
d) product