How to draw a smaller boundary?
3 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
Walter Roberson
2018-2-27
编辑:Walter Roberson
2018-2-27
Try
k1 = boundary(Te2000,Ar2000, 0.75);
7 个评论
Steven Lord
2018-2-27
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!