필터 지우기
필터 지우기

Combining multiple velocity profiles into one graph?

조회 수: 3 (최근 30일)
Juhani
Juhani 2013년 3월 29일
Ok so this is really a few questions in one. I have 3 data sets from an air jet experiment, showing the velocity profiles at 3 different axial distances from a nozzle: http://oi47.tinypic.com/2uh3502.jpg
I want to replot these graphs as parallel vector fields and place them all on one graph, with an end result something like this: http://herkules.oulu.fi/isbn9514259777/html/graphic8484.png, where the y-axis would be radial distance from the nozzle centreline, the x-axis would be axial distance from the nozzle and the length of the vectors would be the velocity of the air at that point. How do I do this?
I've tried using the feather function to come up with a vector profile, but the best I could do was this: http://oi49.tinypic.com/351h6k8.jpg which is obviously not what I want.
Any ideas?
  댓글 수: 2
bym
bym 2013년 3월 29일
can you post some of your data?
Juhani
Juhani 2013년 3월 29일
Sure, here is my data:
R60=[-28:4:28];
R180=[-50:5:50];
R300=[-60:5:60];
V60=[2.19 3.79 8.00 13.15 16.64 16.97 17.11 17.25 17.34 17.25 13.27 8.00 3.58 1.79 0];
V180=[0 1.79 2.83 4.38 5.66 7.48 9.55 11.87 13.74 14.91 14.97 13.97 11.66 9.12 6.57 4.2 2.53 0 0 0 0];
V300=[0 1.79 2.53 3.35 4.38 5.06 5.8 6.93 8.1 9.03 9.88 10.35 10.51 10.04 9.3 8 7.04 5.66 4.73 4 3.35 2.53 1.26 0 0 ];
'R' represents the radial distance from the centreline, and 'V' is the velocity. The numbers represent the axial distance from the nozzle. So for example R60 and V60 are 60mm from the nozzle. Obviously R60 and V60 have to go together, etc.

댓글을 달려면 로그인하십시오.

채택된 답변

Sean de Wolski
Sean de Wolski 2013년 3월 29일
편집: Sean de Wolski 2013년 3월 29일
I didn't see the images. Use feather() or quiver()
For example:
quiver(60*ones(size(V60)),R60,V60,zeros(size(V60)))
Also, this is probably a worthy read:
  댓글 수: 2
Juhani
Juhani 2013년 3월 30일
That's great thanks. How do I combine this and the other two into one plot? Sorry if this is obvious but I'm still a complete novice to matlab!
Sean de Wolski
Sean de Wolski 2013년 4월 1일
Use hold on and call the above three times:
doc hold

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MuPAD에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by