Matlab graphing/plotting problem

  • MATLAB
  • Thread starter sara_87
  • Start date
763
0

Main Question or Discussion Point

1. Homework Statement

i have 4 points,
(8,0)
(4,-4)
(-4,4)
(-8,0)
i want to draw a graph of this on matlab so that the first to points are joined, the last two points are joined, but i want it on the same graph.
how do i do this? what's the command?
thank you

2. Homework Equations



3. The Attempt at a Solution
 

Answers and Replies

22
0
plot([4 8], [-4 0])
plot([-8 -4], [0 4])

remember to hold graphs if you are entering commands individually.
 
763
0
thank you!!!!!!!!!!
 

Related Threads for: Matlab graphing/plotting problem

Replies
1
Views
1K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
3
Views
5K
Replies
1
Views
4K
Replies
1
Views
5K
Replies
2
Views
2K
Top