Working with points of a plot?

1 view (last 30 days)
soloby
soloby on 18 Jun 2015
Answered: Azzi Abdelmalek on 18 Jun 2015
Is there any way to work with multiple points of a plot?
for example,
if I had 2 points
A= (-2, 3); B = (5, 3);
can I do basic operations like add and multiply of these 4 numbers -2, 3, 5, 3 to get a new plot point say, C = (3, 3)?
like, how do I get (3, 3) or something

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 18 Jun 2015
A=[-2, 3];
B =[5, 3];
C=A+B
D=A.*B

Community Treasure Hunt

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

Start Hunting!