Find all x-axis values to a certain y-axis value
조회 수: 18 (최근 30일)
이전 댓글 표시
Hello all, I am new to Matlab and am using it for the first time for a project.
My problem is basically that i have a table (can be plotted into a graph) with certain data points (1-250) on the y-axis with time in ms on the x-axis. The resulting graph therefore doesn't follow a function.
What I need to do now is to find all time points (x-axis values) where y = 5.
I'd be grateful for any help and/or push into the right direction.
댓글 수: 0
채택된 답변
Dyuman Joshi
2023년 9월 28일
Logical indexing is the way to go.
Also refer to Find Array Elements That Meet a Condition
댓글 수: 2
Dyuman Joshi
2023년 9월 28일
Glad to have helped!
If you want to learn more about MATLAB, I would suggest you to take the free MATLAB Onramp tutorial.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Directed Graphs에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!