MATLAB: Creating upper and lower thresholds when graphing

graph thresholds

How do you create thresholds when graphing with red dotted lines.

Best Answer

after you plot the original data
hold on,
plot(x,y,'r--');
where x = [Xaxisstart Xaxisend] and y=[yaxisThresholdvalue yaxisThresholdvalue]
Related Question