フィルターのクリア

How to plot PSD using data in excel?

11 ビュー (過去 30 日間)
razin akmal
razin akmal 2015 年 6 月 22 日
コメント済み: razin akmal 2015 年 7 月 2 日
The data time and amplitude values are in an excel file. From that I wanted to plot PSD, Y-axis amplitude. X-axis frequency.How can I do in this in Matlab?

回答 (1 件)

Murali Krishna
Murali Krishna 2015 年 6 月 22 日
try this...
a=xlsread('test.xls','a1:a30');%time values
b=xlsread('test.xls','b1:b30');%amplitude values
plot(1/a,b);
test.xls is the excel file from which you have to read the data. you also have to specify the range of the data
  1 件のコメント
razin akmal
razin akmal 2015 年 7 月 2 日
it is not working. it just plot straight line graph as i wanted spectral graph.

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

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by