drawing a line from a contour plot

1 次查看(过去 30 天)
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

采纳的回答

Doubutsu
Doubutsu 2014-2-17
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 ^^

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by