If you're looking for a line that is equidistant from original y and line through y values for any given x value, you can take the average of the y-values of each line as below
meanline = mean([sdata ; line1],1);
If that does not answer your question, please clarify what you mean by middle value as others have already stated.
Best Answer