i need the code on matlab or octave for ploting this function in the interval [0,3]…

i need the code on matlab or octave for ploting this function
in the interval [0,3]

i also need a copy of the graph

x2-2x + 1 f(x) = 2