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 中查找有关 NaNs 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!