does anyone know how to draw straight line with curve in the same figure

2 ビュー (過去 30 日間)
Hossam Mosbah
Hossam Mosbah 2021 年 3 月 9 日
回答済み: Image Analyst 2021 年 3 月 11 日
Hi all,
the curve for the load profile and the both straight lines are the shaving (peak and valley). I am trying to plot figure that the straight line follow the curve and they shave the curve at the peak and the valley.
So I am tring to plot my figure from the one ahead to the one on the bottom. Thanks in advance

採用された回答

Image Analyst
Image Analyst 2021 年 3 月 11 日
Try this
maxValue = 2.19e5;
minValue = 1.20e5;
clippedSignal = min([maxValue, signal])
clippedSignal = min([minValue, clippedSignal])
Attach your data if you need more help.

その他の回答 (0 件)

カテゴリ

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