graph ezplot and flpot

조회 수: 1 (최근 30일)
oshawcole
oshawcole 2017년 9월 12일
댓글: Rena Berman 2017년 9월 14일
You are required to design, code, and test a Matlab program that performs the followings:
  1. Request the user to enter a single variable function to find root, upon which a graph should get displayed.
  2. Request the user to enter the interval that contains roots by looking at graph.
  3. On the same window, the user should choose between‘Newton’ and ‘Newton raphson’ methods for a solution
  4. Display answer from the method and compare with fzero in same window.
How to do this? What does this question wants? Anyone can explain in more details, including the codes as well.
  댓글 수: 2
Walter Roberson
Walter Roberson 2017년 9월 13일
It is your assignment; if we provide the code then which of us will get academic credit?
Rena Berman
Rena Berman 2017년 9월 14일
(Answers Dev) Restored edit

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2017년 9월 13일
  댓글 수: 1
Walter Roberson
Walter Roberson 2017년 9월 13일
ezplot is an older routine. It can plot functions of one variable and functions of two variables.
fplot() is a newer routine. It can plot functions of one variable, and it can plot parametric surfaces defined by separable functions for x and y, but it cannot plot functions of two variables. fplot() has a lot of hidden work inside to detect discontinuities and to try to figure out how close together it needs to sample the function to get a reasonably smooth output.
ezplot() plots the function and then returns. fplot() sets up some conditions and then returns, leaving a separate thread running doing the calculations. If you zoom into something done by ezplot() then it just enlarges what was already calculated; if you zoom into something done by fplot() then it will go back through the internal routines for detecting discontinuities and generating smooth lines.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Newton-Raphson Method에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by