I'm Mark Khusid, an electrical engineer in Buffalo, NY. 10+ years in PSpice/LTspice, and currently taking ASU's EEE 572 while working.
I'll post practical power electronics, LTspice simulation, and some Fortran for simulation kernels.
Projects: https://t.co/zfMPGfiB0p
Years ago I ran a 1 Hz square wave through FFTW from Fortran. Magnitude matched SciLab. The phase plot looked like garbage; my page still calls the cause "unknown at this time."
It wasn't garbage: zero-padding, plus phase computed for bins with almost no energy. Write-up below.
Fixed my Fortran FFT tutorial: the 1 Hz square-wave intro now actually says 1 Hz. The run takes the sample rate and the number of periods, and the frequency column starts at 0 Hz. It's a real-to-complex FFTW3 program, and the compile lines now include -I/usr/include. #Fortran #DSP