drawing a parabola given distance between vertex and focus, and angle of parabola
조회 수: 3 (최근 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!