How to plot PSD using data in excel?
3 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(1 个)
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
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spectral Estimation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!