On Mon, 6 Mar 2000, Andrew Kunz wrote: > You mean D/A converter, not A/D, right? Otherwise, I'm confused. D/A of course - sorry. The octave (matlab) code posted yesterday had a bug in the harmonic calculation. That's been fixed. In addition, I wrote another similar octave program that will analyze an ascii string of 0's and 1's. Like the other program, it plots the square wave that has been reconstructed from its harmonics and it plots the magnitudes of the first few harmonics. Here's a screen shot of a 12-bit string, "010110100000", produced by the program: http://www.dattalo.com/ms1.gif and the programs: http://www.dattalo.com/ms.m http://www.dattalo.com/ms2.m Scott