How to plot phase and amplitude spectrum after doing fft?

20 ビュー (過去 30 日間)
Saptarshi Maji
Saptarshi Maji 2020 年 10 月 31 日
回答済み: Sindar 2020 年 11 月 1 日
Hello, I am a new MATLAB user. I had a signal file in .txt which I did Fourier Transform for. I would like to know what code I should input in MATLAB in order to plot the phase and amplitude spectra of this file. Thanks in advance... "The signal txt is atttched herewith"
  2 件のコメント
Star Strider
Star Strider 2020 年 11 月 1 日
That is not possible to do with any accuracy without having the associated time vector (vector of sampling instants for each sample).
Saptarshi Maji
Saptarshi Maji 2020 年 11 月 1 日
編集済み: Saptarshi Maji 2020 年 11 月 1 日
Strider, This is the only data given to me by my lecturer in college, I don't need accuracy but can you give me a code that allows this to do the above mentioned program. I know that the data is incomplete, But can you give the specific time vectors by yourself and do the 2 plottings. Take the sample rate of 100samples/second or deltaT = 0.01.
I will be highly grateful.

サインインしてコメントする。

回答 (1 件)

Sindar
Sindar 2020 年 11 月 1 日
See this example for in angle documentation

カテゴリ

Help Center および File ExchangeSpectral Measurements についてさらに検索

タグ

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by