load('_ Mix 0% .mat')
[xi,yi] = getpts(X1)
My plot looks like above. I would like to truncate the vector such that is contains values from 300 to 600. where as in X1 doesn't contain 300 instead it has 300.2454 . I would like to write a genralized code where I can click on plot to record two data points from X1 (xdata).
[x,y] = getinput(2) returned vales are not from the vector i plotted.
[x,y] = getpts(X1) it is returning vector full of zeros. It should work occording to the manual.
Somebody please help me.