Alternative function or tool instead of plot or line ?
古いコメントを表示

function for drawing segment between three points in set of points (to make triangle that capture all other set of point inside it) but without using plot or line function any other function because those two function not draw at accurate coordinates ?
note / those set of points are random in x,y coordinates, and the three points i denote it like stars.
appreciate any help and i will be thankful.
ܪܝܕܘܐܢ
7 件のコメント
Adam
2016 年 4 月 8 日
What do you mean by "don't draw at accurate coordinates". Plot and line will plot at the points you tell them to, no more, no less, especially when there are no issues of very very small numbers that could cause accuracy issues
Rick Rosson
2016 年 4 月 8 日
Please post your code.
Redwan Dan
2016 年 4 月 8 日
Redwan Dan
2016 年 4 月 8 日
Rick Rosson
2016 年 4 月 8 日
編集済み: Rick Rosson
2016 年 4 月 8 日
Please post your MATLAB code. All of the code necessary so that we can reproduce the exact same plot. Thanks.
I don't have to time to look through carefully, but you need to check your maths and put breakpoints in at the points you are about to plot and check whether your p1, p2, p0 values are correct.
It is almost certain that it is your maths to create those points that is wrong, not the plot function.
As an aside for better code understandability and to hopefully produce fewer bugs though I would not recommend embedding maths directly in the call to scatter. Create your data first and store it, then call scatter on that data. Then the points you need to plot should be points within that stored data rather than you having to try to apply the same maths for the end points of the line that you already did when calling scatter.
Redwan Dan
2016 年 4 月 8 日
編集済み: Walter Roberson
2016 年 4 月 9 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Image Arithmetic についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

