On 7/17/2009 9:20:09 PM, mark_neil wrote:
>I have made the period numeric
>and now it works fine except
>some cases. Pls see the
>attached file. If I enable the
>second function of f(t) on top
>of the file (with t^2 in it),
>then the fourier coefficients
>become complex numbers and it
>doesn't plot g(x) anymore. I
>use MC14. Does anyone have a
>suggestion as how to modify
>the file so that it works for
>any function?
> Thanks.
>
> Mark.
Plot the magnitude. Complex numbers in data are
not plotted (It is one of the techniques for
leaving gaps in plotted data lines).
Likewise you can plot the phase of the Fourier
components by using the arg() function.
I haven't opened the file yet, but I'm presuming
the presence of the t^2 term means you will have a
'chirp' effect, which changes both frequency and
phase [There are multiple definitions of 'phase',
allowing lots of discussion without great
illumination]. It is the phase term that creates
the complex value (and vice versa)
Philip Oakley