Question 1
A power pattern for an antenna is a __________
A. 4-D plot of space and power
B. 3-D plot of space and power
C. 2-D plot of space and power
D. Nothing called power pattern
View Answer
Answer: Option C
Explanation:
The power pattern of the antenna is a 2-d polar plot of the power radiated by the antenna w.r.t theta in cylindrical co-ordinates. Hence, 2-d plot of space and power is only correct.
Question 2
How can several graphs for the same function be plotted on the same window?
A. Contour plots
B. Bode plots
C. 3-D plots
D. n-D plots
View Answer
Answer: Option A
Explanation:
Contour plots allow the plot of multiple curves of the same function on different constant levels of the function. This is extremely helpful in analyzing systems.
Question 3
In a 2-d Plot, which command will make the axes of the graph same?
A. axis square
B. axis equals
C. axes square
D. axes equal
View Answer
Answer: Option A
Explanation:
There is no such command called axes. The command axis is used to change the axes of the graph that has been plotted in MATLAB. axis equal would’ve made the axes of equal length but axis equals has equals. axis square is the only correct option.
Question 4
Inline functions can be plotted by the _________ command.
A. ezplot()
B. plot3()
C. plot()
D. cannot be done
View Answer
Answer: Option A
Explanation:
The ezplot command takes in functions represented symbolically. The input is given as a string. So inline functions can be given as an input to the ezplot command to get a general graph of the input function.
Question 5
The command to draw the nature of a function over a default fundamental period is _________
A. ezplot()
B. plot()
C. stem()
D. plot3()
View Answer
Answer: Option A
Explanation:
The plot, stem and the plot3() command does not have a default fundamental period, we need to define the period of x-axis. The ezplot command generates a plot of the input function over a default fundamental period. This fundamental period is [-2*pi,2*pi].
Question 6
The command used to generate an array of arrows is ________
A. quiver[]
B. arrows()
C. quiver()
D. arrows[]
View Answer
Answer: Option C
Explanation:
The command quiver is used to generate an array of arrows. This command is used during plotting fields in 2-D. It is used to show the direction of strength of the field that is being plotted.
Question 7
The general graph of f(a,b)=0 is plotted by ______
A. ezplot()
B. plot()
C. stem()
D. not possible
View Answer
Answer: Option A
Explanation:
A general graph of the function can be viewed by using the ezplot. If we want to define the values of a/b, we will use the plot() or stem() command. Hence, the answer is ezplot().
Question 8
The limits of the axes drawn are only specified in the command used to plot the graph itself.
A. TRUE
B. FALSE
View Answer
Answer: Option B
Explanation:
The axis command can be used to define the limits of the axis present on the graph that is being plotted. The x-axis of the graph would contain values according to the input to the plot/stem command but the visible part of the graph in the new window will depend on how the length of the axes are defined by the axis command.
Question 9
The period of sinusoidal curves can be changed in MATLAB.
A. TRUE
B. FALSE
View Answer
Answer: Option A
Explanation:
The sin() command is defined to generate a sinusoid with a fundamental time period of 2*pi. The period of sinusoid can be changed by changing the angular frequency while giving input to the sine command.
Question 10
What is the default range used by the fplot command?
A. [-5,5]
B. (-5,5)
C. No default range
D. No such command
View Answer
Answer: Option A
Explanation:
The fplot command is almost like the ezplot command. It will plot the graph of y=f(x) within an interval [-5,5] as it was defined. This default range can be changed by giving a separate vector input to the fplot() command.
Question 11
What is the period of square wave generated by the square() command?
A. User-defined
B. pi
C. 2*pi
D. pi/2
View Answer
Answer: Option C
Explanation:
The square waves generated by the square(0 command will always have a period of 2*pi. We can change the duty cycle of the wave but the fundamental period is 2*pi.
Question 12
What is the period of the sawtooth() waveform which is generated by the sawtooth() command?
A. 2*pi
B. pi*2
C. pi
D. 3*pi/2
View Answer
Answer: Option A
Explanation:
The sawtooth() command generates a sawtooth waveform which changes it’s peak from -1 to 1 in the period 2*pi. This is inbuilt in MATLAB and so the correct answer is 2*pi.
Question 13
What is the slope of the sawtooth waveform generated by the sawtooth command?
A. 1/pi
B. pi
C. 1/(2*pi)
D. 2*pi
View Answer
Answer: Option A
Explanation:
The slope of the sawtooth waveform always has a slope of 1/pi.
Question 14
Which command enables a title for the x-axis?
A. xlabel()
B. horilabel()
C. xlabel[]
D. no command
View Answer
Answer: Option A
Explanation:
The xlabel() command is used to include a title to signify the x-axis of the graph plotted in MATLAB. Hence, the only correct option is xlabel().
Question 15
Which command enables a title for the y-axis?
A. vertlabel()
B. ylabel()
C. ylabel[]
D. no command
View Answer
Answer: Option B
Explanation:
The command ylabel is used to name the y axis of the graph plotted in MATLAB. Hence, option ylabel() is correct.
Question 16
Which command gives a title to the graph plotted by MATLAB?
A. plot() generates the title itself
B. title()
C. hlabel()
D. heading()
View Answer
Answer: Option B
Explanation:
The title() command is used to provide a title to the graph plotted in MATLAB. It can be provided from the taskbar of the window which opens due to the plot command.
Question 17
Which command is suitable to change the axes of the graph plotted?
A. axes
B. axis
C. yxaxes
D. no command
View Answer
Answer: Option B
Explanation:
The axis command can be used to change the interchange the axes of a 2-D plot. This is easier than re=-writing the plot command already used or any other command to generate a 2-d plot. The rest of the options are incorrect.
Question 18
Which toolbox provides the plot command?
A. Symbolic Maths Toolbox
B. Signal Processing Toolbox
C. Engineering Toolbox
D. Functions
View Answer
Answer: Option B
Explanation:
The commands in MATLAB are stored in files called toolboxes. The plot command is stored in the Signal Processing command while the ezplot command is stored in the Symbolic Maths Toolbox.