how to plot waterfall FFT
65 次查看(过去 30 天)
显示 更早的评论
I have time and force discrete values and want a waterfall plot(time, frequency and amplitude). so how can i do that. is these 2 inputs are sufficient for plotting
0 个评论
回答(2 个)
pfb
2015-4-18
have you taken a look at the documentation of the "waterfall" function? You can do that by typing
doc waterfall
I'm not sure why you say you have 2 inputs (time, frequency and amplitude add to 3, in my book).
Anyway waterfall works with either 1 (matrix) or 3 basic inputs.
Star Strider
2015-4-18
Use the spectrogram function to create a time-frequency representation of your force data. Then you can use the waterfall plot. Otherwise, with only time or frequency and force, you do not have enough data for a waterfall plot. You can only plot a 2D fft.
2 个评论
Star Strider
2015-4-19
See the documentation for the spectrogram function (Signal Processing Toolbox). It has a default window function, and allows you to choose from a library of others. With spectrogram, you would not need to use the hold function, unless you are plotting something on top of the plot.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spectral Measurements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!