필터 지우기
필터 지우기

Matlab program to draw cubes.

조회 수: 15 (최근 30일)
Suman Maity
Suman Maity 2019년 1월 18일
댓글: LAKSHMIKANTH D 2020년 5월 12일
In a presentation I want to draw three cubes with different side. Only sides of the cube will be visible. Can any one help me?

답변 (3개)

alejandro perez
alejandro perez 2020년 2월 2일
In the description of this video is the code of a cube which rotates, moves and grows up.
  댓글 수: 1
Image Analyst
Image Analyst 2020년 2월 2일
Cool!
(Is not spam so I removed the Spam flag.)

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


Luna
Luna 2019년 1월 18일
편집: Luna 2019년 1월 18일
Have you ever checked the file exchange? This link might help you: plotcube
Try to put alpha variable 1, and it only shows the sides of the cube as it is given in the example:
hold on;
plotcube([5 5 5],[2 2 2],1,[1 0 0]);
plotcube([5 5 5],[10 10 10],1,[0 1 0]);
plotcube([5 5 5],[20 20 20],1,[0 0 1]);
  댓글 수: 2
Luna
Luna 2019년 1월 18일
Please move your comments to your comments section.
You should download the plotcube function above link I mentioned in the answer. from the file exchange and save it first to call that function from your command window.
LINK: plotcube
LAKSHMIKANTH D
LAKSHMIKANTH D 2020년 5월 12일
hold on;
plotcube([5 5 5],
plotcube([5 5 5],
plotcube([5 5 5],

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


Suman Maity
Suman Maity 2019년 1월 18일
sir, above program did not run correctly. Command window gives the follwing massage
Undefined function 'plotcube' for input arguments of type 'double'.
Error in Untitled2 (line 2)
plotcube([5 5 5],[2 2 2],1,[1 0 0]);
sir kindly send me the full program.
I want to draw four cubes of radius 5,7, 8 ,10 respectively.

카테고리

Help CenterFile Exchange에서 Numeric Solvers에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by