![MLAnswer.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/198120/MLAnswer.jpeg)
i have written the code, but, I don't know why it's not showing the orientation that I want? It doesn't look like what my instructor wants it to look like. Attached as a picture is the question and the picture of what it should look like.
조회 수: 2 (최근 30일)
이전 댓글 표시
syms u v
r=sqrt(9);
fsurf(r*cos(u),r*sin(u),v,[0 2*pi 0 4])
xlabel('x');ylabel('y'),zlabel('z')
axis equal;
xlim([0 4]);ylim([0 4]);zlim([0 4])
hold on
syms y z
z = 4-y;
fmesh(z);
grid on;view([1 1 1]);
댓글 수: 0
답변 (1개)
Pinkesh Narsinghani
2018년 12월 3일
The code is absolutely correct and it's doing exactly what instructor intended it to do. You just need to rotate this to get it in the orientation you like.
To rotate it use rotate 3D tool in the toolbar(in the figure pop-up) .I've attached screenshot of the tool to be used:![MLAnswer.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/198120/MLAnswer.jpeg)
![MLAnswer.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/198120/MLAnswer.jpeg)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Linear Algebra에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!