Home /
Expert Answers /
Computer Science /
questions-1-what-is-the-difference-between-the-stem-and-plot-10-2-what-is-the-purpose-of-subp-pa350
(Solved): QUESTIONS: 1. What is the difference between the stem and plot? (10) 2. What is the purpose of subp ...
QUESTIONS: 1. What is the difference between the stem and plot? (10) 2. What is the purpose of subplot command, explain it. (10p) 3. How can you implement a transfer function to MATLAB? Explain two different methods for it. (18p) 4. Write the commands for plotting poles-zeros of a transfer function. (10p)
1. Difference Between the stem and plot:MATLAB is widely used in data analysis and signal processing.To draw the curves and visualization in MATLAB can use both stem and plot functions.Both x, y length should be same in plot and stem functions.1. Stem Function:Used to draw the curve in MATLAB for Discrete Data points.When give the data points in stem() Function then its draws the graph with some vertical lines and above the lines there is their data points values.The syntex is stem(x, y, z) Where x- Array with data points plot on x-axis y - Array with data points y-axis z -optional command used for color and styles.2.Plot Function():Used to draw the curve in MATLAB for continues Data points.After the giving data points ij plot () then its draws the graph with all data points connected as a continuous line in 2-D Graph.The syntax is plot(x,y,z) Where x- Array with data points plot on x-axis y - Array with data points y-axis z -optional command used for color and styles.