how to elongate parabola? I have plot parabola using 3 points and now i want elongation without changing points.
2 次查看(过去 30 天)
显示 更早的评论
x1=[1,50];
x2=[50,5];
x3=[100,50];
Y=[x1(2);x2(2);x3(2)]
A=[x1(1)^2 x1(1) 1;x2(1)^2 x2(1) 1;x3(1)^2 x3(1) 1]
X=(inv(A))*Y;
x=x1(1):1:x3(1);
Y=(X(1)*(x.^2))+(X(2)*x)+X(3);
figure();
plot(Depth1);
hold on
para=plot(x,Y);
grid on
hold on
text(x1(1),x1(2), ' POINT X1')
text(x2(1),x2(2), ' POINT X2')
text(x3(1),x3(2), ' POINT X3')
hold off
2 个评论
James Tursa
2017-9-29
Elongate in what way? Are you trying to stretch the parabola vertically or horizontally? Or ...?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 DSP Algorithm Acceleration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!