Is it better to generate a plot from a spreadsheet or enter it directly into MatLab?
1 次查看(过去 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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/283326/image.jpeg)
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 个评论
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
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 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!