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

1 Ansicht (letzte 30 Tage)
samart
samart am 15 Nov. 2013
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

Antworten (0)

Kategorien

Mehr zu External Language Interfaces finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by