I am using the spectrum analyser in SIMULINK, to view the spectrum of one cycle of a square wave (50% duty cycle and an amplitude of 1 V).
In the first case I take 40 samples over the single period and I get what I expect a nice smooth sinc x function (albeit plotted in dBm).
However when I increase the sampling by a factor of 50 i.e. 2000 samples over one period, I get straight lines and pointy peaks. The values in terms of peaks and troughs in dBm's and Hz are as before, but the actual graph does not look like what it should be ?
In the first case I take 40 samples over the single period and I get what I expect a nice smooth sinc x function (albeit plotted in dBm).
However when I increase the sampling by a factor of 50 i.e. 2000 samples over one period, I get straight lines and pointy peaks. The values in terms of peaks and troughs in dBm's and Hz are as before, but the actual graph does not look like what it should be ?