select data from plot and update other plot

조회 수: 1 (최근 30일)
michael
michael 2021년 6월 1일
댓글: michael 2021년 6월 1일
Hi,
I have some challange:
  1. I'm using preaaty old version of Matlab - R14 SP3.
  2. I have some waw data which consists of some variables which is proccessed. The data is then proccessed and some of it minimized in size. Then the data (both raw and proccessed) is plotted. For example I have some data (in blue) and some proccessed data in red. I have also a second figure which is both raw data and proccessed data
  3. As I see the proccessed data is the interesting one for me for further analysis, I'd like to have a selection of area on 1st figure and have an automatic focus on that area on the second figure.
Is there some way to do it?
I'm familiar with linkaxes for same axes plots/subplots. Is there some way to perform it on different scale axes?

답변 (1개)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021년 6월 1일
Hi,
Maybe you can try to employ ginput() to select the region and plot the selected region afterwards. Along the way you would need use logical indexing as well to plot only selected region of data.
  댓글 수: 1
michael
michael 2021년 6월 1일
I'm aware of ginput, but I'm not sure how this one can help me.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 View and Analyze Simulation Results에 대해 자세히 알아보기

태그

제품


릴리스

R14SP2

Community Treasure Hunt

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

Start Hunting!

Translated by