Why isn't my shooting method running?

2 views (last 30 days)
Erik Ramirez
Erik Ramirez on 12 Nov 2019
Commented: Erik Ramirez on 12 Nov 2019
Ive attached the functions that my shooting method m file is using. Im trying to use ode solver to solve the two point boundary problem. Then use the answers from ode solver to plug them into the secant method. I keep getting "NAN"
  2 Comments
darova
darova on 12 Nov 2019
Can you show original equations? DO you have the results expect to achieve?
Erik Ramirez
Erik Ramirez on 12 Nov 2019
im tryin to subsitute a value. But im not sure if matlab is having trouble converting it from sybolic. I looked it up and i found one way around it by using vpa comman but it still does not work. for the input im just plugging in
Plese input your lambda_0: 1
Plese input your lambda_1: 2
Plese input your m: 1
Plese input your x_0: 1
Plese input your T: 10

Sign in to comment.

Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!