Hello,
I can't understand how the parameter flag is set.
I see the switch in function of flag value, but where is flag defined during the simulation? I can't figure out!

Hi,
How did you guys solve the problem of 'Time-Scale' getting crushed in your case as well as MATLAB 'specgram' function ? (If you take a signal of length 'x', the final plots would be of 'x minus half the length of window'. I tried zero-padding the signal at the begining and the end. It seems, this idea is generating some erros at the begining and at the end when I tested a perfect 'Sine' wave using a window of length of 'one-cycle'. Any help please!!!