Defining upper and lower control limits for a graph
조회 수: 20 (최근 30일)
이전 댓글 표시
Trying to get thge example below like the one above with set limits for ucl and lcl where ucl = 1.5*mean
댓글 수: 0
답변 (1개)
the cyclist
2022년 5월 23일
Here is a simple example of setting plot limits based on the data. (The last line of code is where I set the limits.)
x = 1:50;
y = rand(size(x));
mean_y = mean(y);
ucl = 1.5*mean_y;
lcl = -1.5*mean_y;
figure
plot(x,y)
set(gca,"YLim",[lcl ucl])
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Automated Driving Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!