How to plot PSD using data in excel?

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일

0 개 추천

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.

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

카테고리

도움말 센터File Exchange에서 Parametric Spectral Estimation에 대해 자세히 알아보기

태그

질문:

2015년 6월 22일

댓글:

2015년 7월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by