Drawing a cube using line command

Hi All,
Can anyone tell me how to draw a cube using line command (through vertices and edges)?
Thanks in advance
Regards
Swati

Answers (1)

KSSV
KSSV on 19 Nov 2020
You can use plot, patch, fill after arranging the vertices in a order.

Asked:

on 19 Nov 2020

Answered:

on 19 Nov 2020

Community Treasure Hunt

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

Start Hunting!