Make a graph with data from all sheets in excel

4 vues (au cours des 30 derniers jours)
Jamie Shelley
Jamie Shelley le 21 Juil 2016
Commenté : dpb le 9 Mar 2018
Every day I carry out a new experiment, each one corresponds to a seperate sheet on the same excel file. Is there a way of finding the data from each sheet to plot it all on one graph? Thanks
  4 commentaires
noname
noname le 8 Mar 2018
It gave me an error if I used xlsfinfo. I want to read all the spreadsheet in the same excel file and plot each spreadsheet, not plot them in one graph. Can anyone give an example how to do it? Thanks alot.
dpb
dpb le 9 Mar 2018
Have to show the code that caused the error...post what you've tried and where ran into a problem.

Connectez-vous pour commenter.

Réponse acceptée

dpb
dpb le 21 Juil 2016
Modifié(e) : dpb le 21 Juil 2016
Sure, just use xlsinfo to return the sheet names in the spreadsheet and iterate over that collection. See
doc xlsfinfo
doc xlsread % for details
  2 commentaires
Jamie Shelley
Jamie Shelley le 21 Juil 2016
ah Thanks, I've just seen your answer, that seems similar to what I did (although I used xlsfinfo as opposed to xlsinfo), thanks!
dpb
dpb le 21 Juil 2016
"I used xlsfinfo as opposed to xlsinfo"
That was a typo, there is no xlsinfo

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Data Import from MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by