Effacer les filtres
Effacer les filtres

How to plot PSD using data in excel?

12 vues (au cours des 30 derniers jours)
razin akmal
razin akmal le 22 Juin 2015
Commenté : razin akmal le 2 Juil 2015
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?

Réponses (1)

Murali Krishna
Murali Krishna le 22 Juin 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
  1 commentaire
razin akmal
razin akmal le 2 Juil 2015
it is not working. it just plot straight line graph as i wanted spectral graph.

Connectez-vous pour commenter.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by