Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
Matlab[ode45] - use MATLAB(R) to solve a previously defined system, f, with ODE45
Matlab[ode15s] - use MATLAB(R) to solve a previously defined system, f, with ODE15s
Calling Sequence
ode45(f, Trange, IC)
ode45(f, Trange, IC, tol=Tol)
ode15s(f, Trange, IC)
ode15s(f, Trange, IC, tol=Tol)
Parameters
f
-
string naming a function defined in MATLAB
Trange
range, t_initial..t_final
IC
initial conditions vector; for example, [0, 0, 0]
tol=Tol
optional floating-point setting for tolerance (default is .001)
Description
The ode45 command uses MATLAB to compute the ODE45 solution of a differential system. The ode15s command uses MATLAB to compute the ODE15S solution of a differential system.
To be valid, the call must name the function (f) defined in MATLAB, and specify both the time range (Trange) and the initial condition vector (IC).
The function f must either be a built-in MATLAB function, or a function defined in the file f.m in the active MATLAB path
The time range must contain both a start time (t_initial) and an end time (t_final).
The initial condition (IC) must have a dimension consistent with the dimension of the system defined in the function, f.
The tolerance option (specified using 'tol'=Tol) must be a floating-point value. It defaults to .001 if not specified.
Executing the ode45 command returns two Vectors: (T, X). T is the Vector of time steps where f was evaluated, and X is a Vector of values of f, evaluated at times in T.
Examples
Call ode45 to work on a built-in MATLAB function.
Call ode15s to work on a built-in MATLAB function.
Create a user-defined function, rocket, in Maple. The file may also be predefined in the current path.
Use the ssystem command to set the permissions on UNIX systems.
Open the Matlab link.
Before accessing the user-defined function, the file needs to be opened (in MATLAB).
Set global variables (in MATLAB).
Setup the problem.
Solve the problem.
Plot the results.
See Also
dsolve, Matlab, Matlab[evalM], MatlabMatrix
Download Help Document