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

4 次查看(过去 30 天)
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 个评论
Cynthia Moore
Cynthia Moore 2020-4-10
编辑:Cynthia Moore 2020-4-10
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 2020-4-10
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.

请先登录,再进行评论。

采纳的回答

Steven Lord
Steven Lord 2020-4-10
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.

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by