## find missing points on a graph

Asked by talayeh ghodsi

### talayeh ghodsi (view profile)

on 13 Jun 2019
Latest activity Commented on by KSSV

### KSSV (view profile)

on 13 Jun 2019
Accepted Answer by KSSV

### KSSV (view profile)

hi every body. I have written this code
a=[1,3,4,6,7,9]
b=[2,12,24,32,41,49]
plot(a,b,'r-')
hold on
plot(a,b,'ko','LineWidth',2,'DisplayName','KnownCorrespondence')
i want to find 3 points on the above graph which i have the a values of them only
a_missing=[2,5,8]
how can i find the b_missing values correspond to a_value on the graph?

### KSSV (view profile)

on 13 Jun 2019

a=[1,3,4,6,7,9]
b=[2,12,24,32,41,49]
plot(a,b,'r-')
hold on
plot(a,b,'ko','LineWidth',2,'DisplayName','KnownCorrespondence')
% get missing
x = min(a):max(a) ;
missing = setdiff(x,a)

talayeh ghodsi

### talayeh ghodsi (view profile)

on 13 Jun 2019
sorry sir. i dont want to find the missing data of a, i know them that are 2,5,8.
i want the y values of them to find the points in order to be on the graph.
i have the plot and the x values on them, i want to find the y values
KSSV

on 13 Jun 2019