How to plot a deviation (upper/lower limit)

5 ビュー (過去 30 日間)
Philipp Mueller
Philipp Mueller 2021 年 5 月 27 日
コメント済み: Torsten 2021 年 5 月 27 日
Hello,
I have a plotted a signal (black line). Now i want to draw a 5 percent upper and lower limit (range deviation).. See my picture. How can i do this?
Thank you in advance.
Best Regards

回答 (1 件)

Torsten
Torsten 2021 年 5 月 27 日
編集済み: Torsten 2021 年 5 月 27 日
Include 1.05*signal and 0.95*signal in the same plot.
  2 件のコメント
Philipp Mueller
Philipp Mueller 2021 年 5 月 27 日
One final question. How can i check if a random signal is between the limits? How can detect it or mark in the plot! Can i do this with a code or are some predefined commands? My signal is for a 19894*2 double. Thank you.
Torsten
Torsten 2021 年 5 月 27 日
If S_rand is the random signal 19894x2 matrix, you can sort out the points where this signal is not in the prescribed limits by
S_out = S_rand( S_rand(:,2) < 0.95*S(:,2) | S_rand(:,2) > 1.05*S(:,2) )
where S is the 19894x2 matrix of the original signal.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by