你好,代码供参考:
x = ; %自己写 y=;%自己写 r = ;%自己写 dis = sqrt(diff(y).^2+diff(x).^2); phi = atan(diff(r)./dis);
有帮助望采纳哟,先行谢谢啦