i have a sine wave with a varying frequency term, as in the f is 10 for a particular time interval and zero everywhere else.

I want to plot the frequency vs time.

any help on how to do the same using matlab/simulink.

I tried using fft but i'm sure of it's working. Just used the code given in matlab help file