Finding normals to contours on contour plot
Show older comments
Is there a good way to find a set of curves that are normal to the contours on a contour plot?
What I have is a set of data that I have used meshgrid and contour to generate a contour plot, however what I really want is a set of curves that are normal to the contours shown in the plot. I am not sure if there is a straightforward way to get that.
thanks Greg
Accepted Answer
More Answers (1)
Andrew Newell
on 20 Apr 2017
0 votes
You want curves to follow the gradients. It's easy enough to represent the gradient using a quiver plot, but if you want to put lines through those arrows, you'll probably have to set up and solve an ODE for each starting point. That would certainly be doable if you had a function that generated the data, but I don't know how you'd do that for a data set.
Categories
Find more on Vector Fields in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!