MATLAB Answers

Ablaye SY
0

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

Asked by Ablaye SY
on 18 Jan 2019
Latest activity Commented on by madhan ravi
on 18 Jan 2019
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).

  0 Comments

Sign in to comment.

3 Answers

Answer by madhan ravi
on 18 Jan 2019
 Accepted Answer

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

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.


Answer by Ablaye SY
on 18 Jan 2019

Thank you very much for your helpful answers.

  0 Comments

Sign in to comment.


Answer by 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

  2 Comments

Yes I see it. I am going to try it. Thank you very much again.

Sign in to comment.