You can create a graph of a half-wave rectified sine wave in the time domain using simple mathematical operations in MATLAB. To plot the waveform in the frequency domain without using the Fast Fourier Transform (FFT), you can perform a Fourier series analysis.
Here is some sample MATLAB code to generate the plots:
main.m1620 chars45 lines
This code will generate plots of the half-wave rectified sine wave in both the time and frequency domains using Fourier series analysis in MATLAB.
gistlibby LogSnag