How can I separate a section of a graph with high values or Energy?
조회 수: 1 (최근 30일)
이전 댓글 표시
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/167092/image.jpeg)
In the image that I have attached to this question I would like to write a code to separate the values between the two data cursor from the rest of the data. How can I do that?
댓글 수: 2
답변 (1개)
KSSV
2017년 9월 8일
If you have only y and plotting wrt indices then:
iwantx=416:1188;
iwant=y(I want);
If you have both x and y data.
iwantx=x(x>=416 & x<=1188) ;
iwanty=y(x>=416 & x<=1188) ;
댓글 수: 4
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!