Difference between revisions of "EGR 103/Fall 2014/Lab 6"

From PrattWiki
Jump to navigation Jump to search
 
 
Line 8: Line 8:
 
== Basic Min/Max Finding Problems==
 
== Basic Min/Max Finding Problems==
 
* Main thing is to look at [[MATLAB:Fminbnd]] and the different ways of calling it.
 
* Main thing is to look at [[MATLAB:Fminbnd]] and the different ways of calling it.
 
== Palm Problem 3.13 ==
 
* This eventually becomes a one-parameter search problem.  Though you are using <code>fminbnd</code> here, there is an example for a one-parameter search at [[MATLAB:Fzero#One_Parameter]]; the example is based on <code>fzero</code> versus <code>fminbnd</code> but the concept is the same.
 
  
 
== Chapra Problem 6.16 ==
 
== Chapra Problem 6.16 ==

Latest revision as of 15:10, 21 October 2014

Typo: In 6.4.3, there is a comment about "a loop may be the best to go" - which is true, there just isn't a loop in the previous problem...

Basic Root-Finding Problems

  • Main thing is to look at MATLAB:Fzero and the different ways of calling it.
  • The sign plots are really helpful.
  • The last equation has three sign changes but only two roots

Basic Min/Max Finding Problems

  • Main thing is to look at MATLAB:Fminbnd and the different ways of calling it.

Chapra Problem 6.16

Chapra 6.21

  • This simply requires using fzero twice - just be careful on how you initialize fzero and also be careful about units for the angles.

Chapra 7.19

  • The lab handout pretty much walks you through this one.

Chapra 7.23, 7.24, and 7.25(b/c)

  • These problems will require fminsearch to find the extremes, as well as meshgrid and surfc to make the plots; more on that at Plotting Surfaces