How to plot slope fields in Matlab

2 replies · 10K views · last reply
neg_ion13
Messages
29
Reaction score
0
Does anyone know how to plot slope fields with Matlab? The only things I can find require creating unit vectors and plotting them along level curves. Is their a more direct way? Also, what program do you think is better for straight forward math operation like this, Mathematica or Matlab?
 
Aren't you not going to share your MATLAB code with us? :wink:

At least you know how to do it. I don't.
 
Sorry, I only know about Mathematica, but since you asked I recommend it highly for this sort of thing:

http://www.wolfram.com/products/mathematica/newin7/content/VectorAndFieldVisualization/
 
Last edited by a moderator: