MATLAB: 2 input and one out in plot

signal systemsspectrum analysis

in this image in example of spectrum analysis of sinusidal signals i want input plot 1 and plot 2 and i want that matlab Draw plot 3 Diagram . what commands can do this problem ? please help man tankyou
meanwhile 1 plot is cos(pi/3n)+0.75cos(2pi/3n) and 2 plot is rectangular window

Best Answer

It looks like the stem() function will create that kind of plot.