drawing a parabola given distance between vertex and focus, and angle of parabola
9 次查看(过去 30 天)
显示 更早的评论
how to draw a parabola if distance between its vertex and focus is given and also the angle of parabola is given?
0 个评论
采纳的回答
suresh
2011-2-17
% y=x^2/4p
% p is focal distance from vertex
%(x,y) is any point on curve
x=linspace(-5,5,100); % 100 point on curve
p=5; %
y=(x.^2)/4*p;
plot(x,y);
hold on;
stem(0,p,'r');
1 个评论
maram
2011-5-9
hi,
i am beginner in Matlab. i really need to know howa to draw a parabola if distance between its vertex and focus is given and also the angle of parabola is given.
i need a clear code plz
thnaks
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!