- Create x, y vectors using linspace
- Creat X, Y matrices using meshgrid with x, y vectors as input.
- Substitute X, Y in your formula. You need to use element by element operations here.
- USe gradient to get slope.
help with slope field in matlab
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
y' = (1+x)/y
in -1<=x=<1 and -2<=y=<2 with step size 0.2
0 Commenti
Risposte (1)
KSSV
il 22 Giu 2021
0 Commenti
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!