MATLAB Answers

Namrata
0

drawing a parabola given distance between vertex and focus, and angle of parabola

Asked by Namrata
on 17 Feb 2011
how to draw a parabola if distance between its vertex and focus is given and also the angle of parabola is given?

  0 Comments

Sign in to comment.

2 Answers

Answer by suresh
on 17 Feb 2011
 Accepted Answer

% 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 Comment

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

Sign in to comment.


Answer by maram
on 9 May 2011

plz how can i show the results on my image??

  0 Comments

Sign in to comment.