EGR 103/Fall 2014/Lab 6
Jump to navigation
Jump to search
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...
Contents
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
- This is a one-parameter search problem. There is an examples for a two-parameter searches at MATLAB:Fzero#One_Parameter
Chapra 6.21
- This simply requires using
fzero
twice - just be careful on how you initializefzero
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
andsurfc
to make the plots; more on that at Plotting Surfaces