I have tried writing the same code as provided in the Example of 3 Dimensional Streamline Path with different values but the output which recived is in 2 Dimensional Graph. I also tried to swith on the Z Label from the Toolbar but its not clickable. Can you please check my code and point out the error in it.
load wind;
[startX,startY,startZ]=meshgrid(90,10:10:60,0:5:25);
verts=stream3(x,y,z,u,v,w,startX,startY,startZ);
lineobj=streamline(verts);
xlabel X;
ylabel Y;
zlabel Z;
grid on
lineobj(3).Color= "r";
lineobj(6).Color= "g" ;
lineobj(6).LineWidth= 3;

 채택된 답변

Dyuman Joshi
Dyuman Joshi 2023년 8월 4일

0 개 추천

Change the view (which is done in the example code as well) -
load wind;
[startX,startY,startZ]=meshgrid(90,10:10:60,0:5:25);
verts=stream3(x,y,z,u,v,w,startX,startY,startZ);
lineobj=streamline(verts);
xlabel X;
ylabel Y;
zlabel Z;
grid on
lineobj(3).Color= "r";
lineobj(6).Color= "g" ;
lineobj(6).LineWidth= 3;
%Change the view to Default 3D view
view(3)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Vector Fields에 대해 자세히 알아보기

질문:

2023년 8월 4일

댓글:

2023년 8월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by