How to copy the upper part (blue) and connect it with brown curve?

1 回表示 (過去 30 日間)
Nisar Ahmed
Nisar Ahmed 2021 年 11 月 9 日
回答済み: Image Analyst 2021 年 11 月 9 日
Hi,
I want to generate two graphs having upper portion same but different lower portion as in the figure. How I can shift/connect the upper blue part on the brown curve?

回答 (1 件)

Image Analyst
Image Analyst 2021 年 11 月 9 日
Your figure does not show "two graphs having upper portion same but different lower portion as in the figure". In fact they're different everywhere. The lower portion is actually more similar than the upper portion. Anyway to shift the brown signal up you do
brownMax = max(yBrown);
blueMax = max(yBlue);
% Now shift and put the shifted copy in a new variable.
yBrown2 = yBrown - brownMax + blueMax;
Then plot yBrown2.

カテゴリ

Help Center および File ExchangeGraphics Object Identification についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by