With only a description, I can only guess. However, assuming that your data are row vectors, something like this will work:
x = -20:20;
y = exp(-(x.^2)/11) + rand(1,size(x(x>0),1));
y = y + [zeros(1,size(x(x<=0),2)) 0.5*rand(1,size(x(x>0),2))];
x_full = [x(x<=0), -fliplr(x(x<0))];
y_full = [y(x<=0), fliplr(y(x<0))];
figure(1)
plot(x_full, y_full)
grid
If they are column vectors, use flipud instead of fliplr, and replace the commas with semicolons:
x_full = [x(x<=0); -flipud(x(x<0))];
y_full = [y(x<=0); flipud(y(x<0))];
Best Answer