Depends how your function is defined really, but if you have a vector of x
values and another with corresponding function values y
, then
plot(x,y)
plots the function normally, and
plot(a,b,2*a(end)-a(1)-cumsum([0;diff(a)]),b)
plots the flipped and translated function.