how to plot waterfall FFT

조회 수: 42 (최근 30일)
Gaurav Bhakar
Gaurav Bhakar 2015년 4월 18일
댓글: Star Strider 2015년 4월 19일
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

답변 (2개)

pfb
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.
  댓글 수: 1
Gaurav Bhakar
Gaurav Bhakar 2015년 4월 19일
i have seen that doc file... i have 50000 time and force values and i want to show 3-d plotting having time , frequency and amplitude as 3 axis. that is possible by using "window". but i dont know how to do that. if you have any code if will be very help full for completing my college report.
by the way thanks for response

댓글을 달려면 로그인하십시오.


Star Strider
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
Gaurav Bhakar
Gaurav Bhakar 2015년 4월 19일
thanks but by any means if i can give "window" to my data and use hold on command. will it work
Star Strider
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 CenterFile Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by