📄 curvefun.m
字号:
function [a,b,c] = CurveFun(pt1,pt2,pt3)
%由点pt1,pt2,pt3确定二次曲线的系数
temp23 = pt2.x-pt3.x;
temp31 = pt3.x-pt1.x;
temp12 = pt1.x-pt2.x;
a=(pt1.y*temp23+pt2.y*temp31+pt3.y*temp12)/(pt1.x*pt1.x*temp23+pt2.x*pt2.x*temp31+pt3.x*pt3.x*temp12);
b=(pt1.y-pt2.y-a*(pt1.x*pt1.x-pt2.x*pt2.x))/(pt1.x-pt2.x);
c=pt1.y-a*pt1.x*pt1.x-b*pt1.x;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -