draw parabola

9 ビュー (過去 30 日間)
emrah kara
emrah kara 2011 年 12 月 28 日
Write a Matlab m-file to input three points (x1,y1), (x2,y2) and (x3,y3) in the x-y plane, and to draw the function and output the equation of a parabola passing through these points.
haw can draw?

採用された回答

Sean de Wolski
Sean de Wolski 2011 年 12 月 28 日
doc linspace
doc plot
doc ezplot %If you have the symbolic math toolbox
A few pointers.
  2 件のコメント
Sean de Wolski
Sean de Wolski 2011 年 12 月 28 日
Okay, I'll give you a bigger hint:
doc polyfit %and friends
Jan
Jan 2011 年 12 月 29 日
I prefer the "doc polyfit" hint. +1

サインインしてコメントする。

その他の回答 (2 件)

emrah kara
emrah kara 2011 年 12 月 28 日
we will take the three points from the keyboard then we will draw a parabola which intercepts these points so we need a method to solve this problem.
  1 件のコメント
John D'Errico
John D'Errico 2011 年 12 月 28 日
So? This is not the we do your homework site. Sean has already given you some hints to get started. Why not make a stab at it? If you have a problem with something, THEN ask a question.

サインインしてコメントする。


Jose Jeremias Caballero
Jose Jeremias Caballero 2011 年 12 月 29 日
Hello, you improve your question.
Your question would be:
1). Write a program in Matlab, to find the equation of the parabola with focal axis parallel to the X axis passing through the points (x1, y1), (x2, y2) and (x3, y3).
2). Write a program in Matlab, to find the equation of the parabola with focal axis parallel to the Y axis, passing through the points (x1, y1), (x2, y2) and (x3, y3).
3). Write a program in Matlab, to find the equation of the parabola passing through the points (x1, y1), (x2, y2) (x3, y3), (x4, y4) and (x5, y5).
  1 件のコメント
Jan
Jan 2012 年 1 月 1 日
This does not answer the OP's question.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by