let say i want to plot function y=sinx. (this is just for example, of course the real case is much more complicated)
so in matlab i write plot y.
and now i want to have the period of the graph. (we know in this case the period is 2 pi).
how can i get that?
is there any command for that?
getperiod? hehe..i know no such thing rite? heheh..
FFT gives you the spectrum of your signal, which is the range of frequencies found in your signal. If you find the spectrum of a pure sinusoidal signal, you would get an impulse in its spectrum at the specified frequency. https://www.mathworks.com/access/helpdesk/help/techdoc/ref/fft.html