Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Trying to plot a streamline
조회 수: 2 (최근 30일)
이전 댓글 표시
I am trying to plot a streamline, but for some reason my u and v are returning single values. I'm trying to get the x and y values to go from 0 to 10.
clc
clear all
%%change x to t for time
x = [0:10];
y = [0:10];
E = 2.50;
V = 1;
TV = [1:90];
Pi=3.14;
Psi = E/2;
Psist = -E/(2.*pi.*V);
R = (E/2.*Pi.*V)*((Pi-TV)/sin(TV));
u = V + (E/2.*pi.*R).*x/(x.*x+y.*y);
v = (E/2.*pi.*R).*y/(x.*x+y.*y);
streamline(u,v,0,0)
Error using stream2 (line 46)
U,V must all be size 2x2 or greater.
Error in streamline (line 60)
verts = stream2(u,v,sx,sy,options);
Error in MAE603Fluid (line 16)
streamline(u,v,0,0)
댓글 수: 1
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!