How to plot PSD using data in excel?
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Murali Krishna
am 22 Jun. 2015
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
Siehe auch
Kategorien
Mehr zu Spectral Estimation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!