Hey guys,(adsbygoogle = window.adsbygoogle || []).push({});

I was just wondering if anyone knows how to set the initial conditions for ode45() if you know f(1.5) but NOT f(0)

Currently I have

>> ode45(f, [0 1 1.8 2.1], [1.5 .5])

But this creates the following error:

??? Error using ==> funfun/private/odearguments

@(T,Y) (T-EXP(-T))/(Y+EXP(Y)) must return a column vector.

Thanks.

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Matlab question

Loading...

Similar Threads - Matlab question | Date |
---|---|

MatLab function question | Sep 5, 2015 |

Contour question in matlab | Feb 9, 2015 |

Concept and subject of latex and its usage and related questions on latex | Sep 25, 2014 |

Computing question 1st year Engineering-MATLAB | Apr 22, 2014 |

Matlab question: How to pick specific value from column vector | Jan 16, 2014 |

**Physics Forums - The Fusion of Science and Community**