Adding lines to box in data on scatter plot.

I am looking to get 2 lines which 'boxes' my plotted data in as per image.
I am pretty new to matlab and managed the plotting and can get a line of best fit for the whole data set, but that is about where I am.
Is there away to draw the lines in and get the equation of them, or a more scientific way?
The select data brush only selects as blocks. Thus selecting the data at just the edges and the plotting them seems a bit time consuming and problematic.
Thanks,

1 件のコメント

dpb
dpb 2022 年 4 月 27 日
編集済み: dpb 2022 年 4 月 28 日
First would require some specific definition of just what "boxing in" would mean.
With such a blob of points it wouldn't appear an OLS line has much bearing on anything; you could perhaps turn it into a BW image and use some of the object identification tools to find it as an "object" and then use those bounding coordinates...

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

回答 (0 件)

カテゴリ

タグ

質問済み:

2022 年 4 月 27 日

編集済み:

dpb
2022 年 4 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by