How can I place R2 (x, y) points on a plot (a mark) ?

2 views (last 30 days)
Hello, can someone help me to place R2 (x, y) points on a plot? For example, I want to place these points in a mark : A (0,1), B (0, -1), C (1,0), and D (-1,0).

Accepted Answer

madhan ravi
madhan ravi on 18 Jan 2019
The first point in each variable represents x and the next y , put all the variables in a matrix named R2 by vertically concatenating and then use
plot(R2)
  1 Comment
Ablaye SY
Ablaye SY on 18 Jan 2019
Thank you for the answer. The problem is I should have a figure like that :images.png
But when I do plot(R2) I haven't it.

Sign in to comment.

More Answers (2)

Ablaye SY
Ablaye SY on 18 Jan 2019
Thank you very much for your helpful answers.

madhan ravi
madhan ravi on 18 Jan 2019
plot([0,-1,-1,0,0,1,1,0],[-1,0,0,1,1,0,0,-1],'k')
Screen Shot 2019-01-18 at 8.19.29 PM.png

Categories

Find more on Line Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!