How to draw a smaller boundary?

3 views (last 30 days)
Leon
Leon on 27 Feb 2018
Commented: Leon on 28 Feb 2018
I have a two column data of Te2000 and Ar2000. I can plot the points and their boundary without any issue like this:
plot(Te2000, Ar2000, 'b.')
k1 = boundary(Te2000,Ar2000);
hold on;
plot(Te2000(k1), Ar2000(k1));
My goal is to get a tighter boundary that only covers 90% of the points, so I tried the below code:
plot(Te2000, Ar2000, 'b.')
k1 = boundary(Te2000,Ar2000);
hold on;
plot(Te2000(k1), Ar2000(k1), 0.75);
Why do I get this below error?
Error using plot
Data must be a single matrix Y or a list of pairs X,Y.

Accepted Answer

Walter Roberson
Walter Roberson on 27 Feb 2018
Edited: Walter Roberson on 27 Feb 2018
  7 Comments
Steven Lord
Steven Lord on 27 Feb 2018
If you're using release R2017a or later, check if any of the methods available in the isoutlier function detects outliers in such a way that matches your intuition and/or expectations.
Leon
Leon on 28 Feb 2018
Many thanks for the tip!

Sign in to comment.

More Answers (0)

Tags

Products

Community Treasure Hunt

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

Start Hunting!