Shade Anomaly fills in graphs above and below the x-axis different colors. It allows you to create offsets, so that values above a certain threshold are shaded. This is good to use if you would like shade values above a standard deviation.
There is an example in the script if you do not enter any inputs.
Please share comments and suggestions!
MATLAB 7.8 (R2009a)
This function requires the use of the hline function. You can download it from the File Exchange or you can comment out that part of the function.
Dear Alec, the function is great. However, I have a little problem and I don't know why.
When I make my shaded_anomaly graph, the graph doesn't show shaded all values above offset. Somebody have detected the same problem?
The function requires the use of a function called hline. You can download it from the file exchange or you can comment out that line. It is for appearance only. A new version will include those changes in the near future.