close all
y=-10:1:-6
x=0:1:4
plot(x,y)
%% The code to invert the x axis in matlab is
set(gca, 'XDir', 'reverse')
set(gca, 'YDir', 'reverse')
%where 'XDir' is the axis to invert 