How to copy the upper part (blue) and connect it with brown curve?
1 次查看(过去 30 天)
显示 更早的评论
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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/795344/image.jpeg)
0 个评论
回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Identification 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!