"polyxpoly" doesn't work for some particular set of data

1 回表示 (過去 30 日間)
samart
samart 2013 年 11 月 15 日
I have a problem with "polyxpoly" which can't find the intersection point of below data set, one set of AA and BB is same value (AA(3,2) = BB(3,2). AA are (X and Y)
0.007507246205337 0.837497370043180
0.007432053248162 0.843747542963220
0.007356860290987 0.849997715883261
0.007285124879676 0.856247869316323
0.007213389468364 0.862498022749385
BB are (X and Y)
0.010289928363969 0.849996856934689
0.008825471754196 0.849997274793503
0.007356860290987 0.849997715883261
0.005888248827779 0.849998156973018
0.004416875790819 0.849998613770215
[xx,yy] = polyxpoly(AA(:,1),AA(:,2),BB(:,1),BB(:,2))
xx =
Empty matrix: 0-by-1
yy =
Empty matrix: 0-by-1
But when I scale BB(:,2) by .9999999999999999, it works fine. [xx,yy] = polyxpoly(AA(:,1),AA(:,2),BB(:,1),BB(:,2)*.9999999999999999) xx =
0.007356860290987
yy =
0.849997715883260
Any bug? or this function can't find the intersection point of data set that has the same value?
Thank you very much SAM

回答 (0 件)

カテゴリ

Help Center および File ExchangeExternal Language Interfaces についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by