How to use the x-axis coordinate as a reference in a set of data points, divide 5 coordinate points at equal intervals, and find these points. Thanks a lot for your answer.
조회 수: 1 (최근 30일)
이전 댓글 표시
답변 (2개)
Walter Roberson
2022년 3월 19일
편집: Walter Roberson
2022년 3월 19일
linspace(first_x, last_x, 5)
if the "5 coordinate points" includes the first and the last point.
If the requirement is 5 points excluding the first and last point, then increase the 5 in linspace() to 7.
If the requirement is to have 5 equal intervals, use 6 in linspace()
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!