How can I do a contour plot of velocity, having x, y coordinates and its length on x and y axis?
이전 댓글 표시
Hello,
I have problems concerning creation of contour plot. By this I mean, I have a txt file with 4 columns. Each row represents one vector. First two columns specify vector position (x and y coordinate) whereas next two stores velocity (so length of the vector in fact) value (horizontal and vertical component).
I am supposed to plot the data in contour form and so far, nothing seems to work. I tried functions contour, contourfm meshgrid, griddata etc. It should be mentioned, however, that I'm not an experienced MATLAB user, so probably I'm using these functions in a wrong manner.
I would appreciate your help.
댓글 수: 2
bym
2012년 12월 8일
post a sample of your data
Vedant Patel
2022년 1월 23일
You can use streamslice function to create the the plot.
답변 (1개)
bym
2012년 12월 8일
contour(x,y,hypot(vx,vy))
카테고리
도움말 센터 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!