Defining upper and lower control limits for a graph
18 ビュー (過去 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!