To create a half-wave sine wave in time domain without using FFT in MATLAB, you can directly generate the waveform using the sine function and then set the negative values to 0. Here's an example code snippet:
main.m418 chars15 lines
To obtain the frequency domain representation without using FFT, you can calculate the Fourier transform of the half-wave sine wave using the formula for Fourier transform of sine wave. First, calculate the Fourier coefficients manually, and then plot the magnitude of these coefficients.
main.m466 chars15 lines
By following these steps, you can create a half-wave sine wave in both time and frequency domains without using FFT in MATLAB.
gistlibby LogSnag