Can Matlab handle segmented graphs and automatic trendlines?
Show older comments
I am looking to get a graphing application and Matlab is my top candidate at the moment. My immediate need is to generate graphs for my blood glucose readings, which I take twice daily. I would like to generate a graph something like the one below. This one has 3 segments. Each segment is two weeks long during which the medication dose (insulin) was constant. There are 6 graphs in all, each from a table of values. For each graph, there is a trend line (best fit linear reghression equation).
Here are my questions, can Matlab:
- Put these 6 (or more) equations on the same graph?
- Label the X axis with dates (1/06 1/08 1/10 etc.) instead of the numbers I show here?
- Read the values from an external table, like in Excel, so that is I update the table, the graph is automatically updated?
- Generate the trendlines automatically so that if the underlying data changes, a new trendline is created?

One last question: Can Matlab add shading to sections of the graph as in this example? This is a poor example, but it's the best I can do with my current software. I'm hoping Matlab can do better.

Accepted Answer
More Answers (0)
Categories
Find more on Networks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!