I'm new to Matlab so trying to piece together my learnings here. Thank you in advance.
What I'm trying to do is plot two different lines (baseline vs actual) taken at different sample times (not a curve or line). Basically the example is measuring the area between posted speed and measured actual speed. Those data entries are entries are added as variables and I then want to use trapz to calculate the value for each line separately, but just as important I want to shade in the area between the lines using patch.
1. I can't figure out how to correctly shade in the area BETWEEN the plots using patching to represent trapazoid shaped figures. I did figure out how to do the math between the matrix of the data, and using patch show it but it's not in the right place, and doesn't handle decreasing values at all.