如何使用MATLAB找到一条直线(由两点组成)和一条折线之间的角度?
折线样本数据:
X = [59.5001826000000,59.5005297000000,59.5006135000000,59.5012631000000,NaN];
Y = [36.3160562000000,36.3158460000000,36.3157953000000,36.3153916000000,NaN];
两点样本数据:
p1 = [36.3083315600000, 59.5669254100000];
p2 = [36.3083643100000, 59.5667925800000];