Clear Filters
Clear Filters

drawing a line from a contour plot

1 view (last 30 days)
Doubutsu
Doubutsu on 17 Feb 2014
Answered: Doubutsu on 17 Feb 2014
Hello,
I have ploted some data in a contour plot. There are space coördinates on the axis and the isolines of the contourplot are the magneticfield strength. Anyway I want to see the magneticfield strengt (so the value of the contourlines) in a graph with a single line. I know that to do this I would have to chose either a X or a Y coordinate to be a fixed value and that's fine with me. But I have no idea to do this. So far I have tried: plot(X,BZ) (BZ being the values of the magneticfield), but then matlab gives lots of lines (for all the Y values I guess) and I totally I get that this is not working, but I don't know how to get it to work. Hope that someone can help out.
Greetingz

Accepted Answer

Doubutsu
Doubutsu on 17 Feb 2014
Oh typical. I spend days trying to do something, ask the question and then find the answer ^^''. Anway, I found out how to do it =). I had made an extra variable and then name the row/collum I wanted to use and then plot that ^^

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!