필터 지우기
필터 지우기

How do you draw a plane on Matlab?

조회 수: 9 (최근 30일)
Altin Guberi
Altin Guberi 2015년 6월 1일
답변: Harshvardhan 2023년 3월 8일
How can I draw a plane in Matlab? can someone give some basic functions? Thank you and have a nice day))))
  댓글 수: 3
Jan
Jan 2015년 6월 1일
편집: Jan 2015년 6월 1일
A geometric plane has no borders. Drawing it through the complete area of the axes does not allow for an easy recognition, because you have either the complete axes filled by a color or by a line, if the view direction is inside the plane. So please specify what you want to achieve, what is the prupose of including the plane in the visualisation? E.g. I'm drawing geometric planes in a 3D animation using a transparent square with solid edges to visualize the degrees of freedom of a rotation. The edge is meaningless in this case, but it helps to recognize the direction of the plane.
Altin Guberi
Altin Guberi 2015년 6월 2일
Airplane

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

채택된 답변

Stephen23
Stephen23 2015년 6월 2일
편집: Stephen23 2015년 6월 2일
For a start you could have a look at this aeroplane:
It draws this using MATLAB:
  댓글 수: 2
Altin Guberi
Altin Guberi 2015년 6월 2일
Can you modify this and make it more real view?
Stephen23
Stephen23 2015년 6월 2일
Of course you can modify and paint it pink, if you so wish. You could contact the author of that function and ask how they created it.

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

추가 답변 (2개)

Image Analyst
Image Analyst 2015년 6월 2일
편집: Image Analyst 2015년 6월 2일
See "Exploring volumes with slice planes" in the help:
MATLAB => Graphics => 2-D and 3-D Plots => Surfaces, Volumes, and Polygons => Volume Visualization

Harshvardhan
Harshvardhan 2023년 3월 8일
% Define the x-y-z coordinates for the airplane
x = [0 1 2 2 0 -2 -2 -1 0 0 0 0];
y = [0 0 0 1 1 1 1 1 2 2 3 3];
z = [0 0 0 0 0 0 0 0 0 0 0 0];
% Create a 3D plot of the airplane
plot3(x,y,z,'LineWidth',2);
% Set the axis limits
xlim([-3 3]);
ylim([-1 4]);
zlim([-1 1]);
% Set the axis labels
xlabel('x');
ylabel('y');
zlabel('z');
% Set the title
title('Airplane Example');

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by