You want make F
an argument of your derivative function and pass the right anonymous function to ode45
:
[t,N] = ode45(@(t,y) rateEquations(t,y,F), timeSpan, initialConditions)
More Related Contents:
- Matlab ode solvers: changing state and specified time
- How to deal with name/value pairs of function arguments in MATLAB
- How to correct “Function definitions are not permitted at the prompt or in scripts”
- How can I generate a list of function dependencies in MATLAB?
- MATLAB error: Undefined function or method X for input arguments of type ‘double’ [duplicate]
- How to create a custom EL function to invoke a static method?
- Is it possible to define more than one function per file in MATLAB, and access them from outside that file?
- “Parameter” vs “Argument” [duplicate]
- Passing external function of multiple variables as a function of one variable in Fortran
- Procedure with assumed-shape dummy argument must have an explicit interface [duplicate]
- Jump to function definition
- How to alias a function name in Fortran
- Suppressing a function’s command window output
- Parenthesis Powershell functions
- MATLAB: Is it possible to have two event values whilst using ode45?
- How to compose `not` with a function of arbitrary arity?
- Uses for Haskell id function
- Exporting a function in shell
- D3 Key Function
- Is there a way to get a vector with the name of all functions that one could use in R?
- Absolute error of ODE45 and Runge-Kutta methods compared with analytical solution
- F# generics / function overloading syntax
- What are the differences between functions and methods in Swift?
- Override a function that is imported in a namespace
- How to avoid SQL injection in CodeIgniter?
- Eta-expansion between methods and functions with overloaded methods in Scala
- Solving an ODE when the function is given as discrete values -matlab-
- Bodiless function in Golang
- Proper use of modules in Fortran
- Static function variables in Swift