scatter plot, stem

5 次查看(过去 30 天)
unkn
unkn 2021-5-19
编辑: unkn 2021-5-21
Observe the breaks in the sorted list by calculating the first differences in the samples – at samples 7, 13, 17 forming the groups of samples 1 - 7, 8 - 13, 14 -17, 18 – 20. The gaps in the sorted list in X indicate - demarcation of potential segments.
x=[2.6498, 5.4147, 7.7189, 7.9493, 7.2581, 47.5806, 44.1244, 78.4562, 73.3871, 74.3088, 91.8203, 96.659, 95.9677, 36.9816, 35.1382, 35.5991, 40.2074, 16.4747, 9.7926, 68.0876];
y=[11.4035, 7.3099, 14.9123, 95.0292, 85.6725, 91.5205, 82.1637, 13.7427, 14.3275, 27.193, 183.9181, 177.4854, 192.1053, 157.0175, 163.4503, 175.731, 172.2222, 106.1404, 114.9123, 123.6842];
please someone can explain how the below output could get.Need matlab script to get this .

回答(1 个)

Steven Lord
Steven Lord 2021-5-19
See the islocalmax function.
  1 个评论
unkn
unkn 2021-5-21
sorry , i have no idea with this. please can you explain it more .

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Shifting and Sorting Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by