In MATLAB, I have the following sets of points:
T_arr =
1000
500
400
300
200
100
results =
2.6000
2.2000
2.1500
2.1000
2.0000
1.8000
When I plot them it looks like this:
plot(T_arr, results); hold on;
plot(T_arr, results,'*');
xlabel('T');
ylabel('result');
title('T vs. result')
I would like to color the region above the curve in one color (say red) and the region below the curve in a different color (say blue). How can this be done in MATLAB?
I am aware there are two functions in MATLAB called fill and area , but I am unclear how to use them for this particular problem.