Read wave.m
Reads JCAMP-DX waveform files. Arguments:
filename - a string containing the name of the file
npoints - waveform upsampling or downsampling is
performed to this number of points
Note: phases are returned in degrees, amplitudes in percent.