Is it better to generate a plot from a spreadsheet or enter it directly into MatLab?

2 vues (au cours des 30 derniers jours)
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:
  1. Is it better to have MatLab extract the data from their spreadsheets or should we re-enter it directly into MatLab?
  2. Later, I will want to make a "summary" plot showing the averages of each period and possibly a trendline.
  3. 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?
  4. I'd appreciate any other or suggestions.
Thanks
PS: How to I shrink the plot above so it doesn't dominate the post?
  6 commentaires
Cynthia Moore
Cynthia Moore le 10 Avr 2020
Modifié(e) : Cynthia Moore le 10 Avr 2020
OK, thanks.
That adjustment can only be made when I add the image? Once it's added, is there a way to change it?
It looks like you did change it, right? Thanks
Walter Roberson
Walter Roberson le 10 Avr 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.

Connectez-vous pour commenter.

Réponse acceptée

Steven Lord
Steven Lord le 10 Avr 2020
There's no tutorial that covers creating a plot specifically like that, but there are tutorials for some of the pieces that you'll probably need to combine to create such a plot. The "Data Import and Analysis" section of the Examples list should contain some examples that will help you import your data into MATLAB. The "Graphics" section should contain some examples (Combine Multiple Plots, perhaps) and the "Mathematics" section has a few related to curve fitting (to fit your trend lines.)
In addition, if you search the Support website for phrases that describe each step ("import data from spreadsheet" for example) you may find additional examples and videos that will be helpful.

Plus de réponses (0)

Catégories

En savoir plus sur Large Files and Big Data 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