MATH 475B Lecture Notes - Lecture 19: Partial Differential Equation, Hyperbolic Partial Differential Equation

23 views5 pages

Document Summary

Page 1 of 5 - mar 31, 2011. How to change b0 in command line, passing in the parameter into. @rhs and @bcs, unfortunately, rhs(x, y, parameters) and. Bcs(u, v, parameters) are reserved for a different use (the case where you want to solve for the parameters, you would also have bvpinit(x, @guess, parameterguess) You could use global variables, but debugging becomes dif cult (not in this scale though) You can write more than one function in one le, nested, the functions de ned inside actually can use the variables from their enclosing functions. So we can write an outer function, inside it de ne rhs (can also include bcs) Function sol = solveit(mu, lambda, eta, beta0, solinit) Sol = bvp4c( @rhs, @bcs, solinit) function yp = rhs(x,y) Page 2 of 5 - mar 31, 2011. Sol_10 = solveit( 0. 02, 0. 0279, 0. 01, 10, solinit);

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related textbook solutions