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 日間)
Wesley
Wesley 2022 年 3 月 19 日
回答済み: Wesley 2022 年 3 月 19 日
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.

回答 (2 件)

Walter Roberson
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()
  2 件のコメント
Wesley
Wesley 2022 年 3 月 19 日
Understood, thank you very much for your enthusiastic answer.
Wesley
Wesley 2022 年 3 月 19 日
Only the first 7 points can be extracted, and points cannot be extracted evenly at a certain distance. This method is still not advisable, and I would like to discuss with you what new methods are available. Thanks for your answer.

サインインしてコメントする。


Wesley
Wesley 2022 年 3 月 19 日

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by