Draws the slope field of a first-order, univariate, ordinary differential equation.
Vous suivez désormais cette soumission
- Les mises à jour seront visibles dans votre flux de contenu suivi
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails
slope_field
Draws the slope field of a first-order, univariate, ordinary differential equation.
Syntax
slope_field(f,[xmin,xmax],[ymin,ymax])
slope_field(f,[xmin,xmax],[ymin,ymax],density,color,width)
fig = slope_field(__)
Description
slope_field(f,[xmin,xmax],[ymin,ymax]) draws the slope field of a differential equation , where
f is the function handle of , and where
[xmin,xmax] and [ymin,ymax] define the domain over which the slope field is drawn.
slope_field(f,[xmin,xmax],[ymin,ymax],density,color,width) draws the slope field of a differential equation , where
f is the function handle of , and where
[xmin,xmax] and [ymin,ymax] define the domain over which the slope field is drawn. Additionally,
density defines the number of lines to draw in the horizontal direction (effectively controlling how many lines are drawn to create the slope field), and color and width define the color and line width, respectively, of the lines.
fig = slope_field(__) draws the slope field and also returns the figure handle of the slope field. You can use any of the input arguments in the previous syntaxes.
Examples
- See "EXAMPLES.mlx" or the "Examples" tab on the File Exchange page for examples.
Citation pour cette source
Tamas Kis (2026). Slope Field Generator for ODEs (slope_field) (https://github.com/tamaskis/slope_field-MATLAB/releases/tag/v3.1.0), GitHub. Extrait(e) le .
Informations générales
- Version 3.1.0 (87,6 ko)
-
Afficher la licence sur GitHub
Compatibilité avec les versions de MATLAB
- Compatible avec toutes les versions
Plateformes compatibles
- Windows
- macOS
- Linux
