Is it better to generate a plot from a spreadsheet or enter it directly into MatLab?
Mostrar comentarios más antiguos
I have finished all of the Getting started with MatLab introductory lessons. but am otherwise new to MatLab. My immediate purpose in getting MatLab is to generate plots of blood glucose readings for some diabetic friends. They currently have the data in spreadsheets. They want a graph showing how changes in treatments affect their readings. Initially, each plot will be for a period of 2-4 weeks during which the medications will be static. The plot will show one line for AM readings and one for PM readings and then a trendline for each. Here's a plot from an old shareware program one of them is using. I want to do something much better than this.

I have a couple of questions:
- Is it better to have MatLab extract the data from their spreadsheets or should we re-enter it directly into MatLab?
- Later, I will want to make a "summary" plot showing the averages of each period and possibly a trendline.
- Where is the best place for me to go to get started on this? Is there a tutorial that is focused more or less on this?
- I'd appreciate any other or suggestions.
Thanks
PS: How to I shrink the plot above so it doesn't dominate the post?
6 comentarios
Walter Roberson
el 10 de Abr. de 2020
If the data is in regular format, then it is usually better to read from the spreadsheets.
If the data is not in regular format, then sometimes it can be worth making it regular
Reading from spreadsheets is slower than built-in data, but the extra time for well-formatted spreadsheets is small compared to the amount of time it would take to re-enter the data.
Cynthia Moore
el 10 de Abr. de 2020
per isakson
el 10 de Abr. de 2020
In the menu you use to add the image there is a drop-down-menu Display Settings.

I changed size of your image to 50%
Walter Roberson
el 10 de Abr. de 2020
Humans are often bad about not putting data into consistent columns or putting in extra rows or putting in text explanations in fields that should be just numbers, or not using consistent date formats.
Cynthia Moore
el 10 de Abr. de 2020
Editada: Cynthia Moore
el 10 de Abr. de 2020
Walter Roberson
el 10 de Abr. de 2020
If you go into the editor and click on the already-added image, and then click on the picture-frame tool in the toolbar, then you can edit the percentage.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Line Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!