# How can I get the frequency or amplitude of certain point of the given signal by matlab?

4 visualizaciones (últimos 30 días)
minsoo kim el 30 de Nov. de 2017
Comentada: minsoo kim el 30 de Nov. de 2017
How can I get the frequency or amplitude of certain point of the given signal by matlab without using plot?
for example,
Using function A, A(signal x,'certain point') returns frequency or amplitude of that point of time.
##### 0 comentariosMostrar -2 comentarios más antiguosOcultar -2 comentarios más antiguos

Iniciar sesión para comentar.

Walter Roberson el 30 de Nov. de 2017
Multiply the time of the "certain point" by the sampling frequency, and add 1, in order to get the sample index in the signal. Access the signal at that index to get the amplitude there.
In order for there to be a "frequency" there has to be a change in value. At any given time, there is no change in value, just the one amplitude. Therefore you cannot have a frequency at any given point in time.
To be able to resolve a frequency of n Hz, you need at least max(2*n, 2 * Fs/n) samples.
Generally what you need to do is a short-time fourier transform (stft) such as is implemented by spectrogram or by https://www.mathworks.com/matlabcentral/fileexchange/45197-short-time-fourier-transformation--stft--with-matlab-implementation
##### 1 comentarioMostrar -1 comentarios más antiguosOcultar -1 comentarios más antiguos
minsoo kim el 30 de Nov. de 2017
haha thanks!

Iniciar sesión para comentar.

### Categorías

Más información sobre 스펙트럼 측정값 en Help Center y File Exchange.

### Community Treasure Hunt

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

Start Hunting!