Hello, I want some help writing a matlab script.

x(n+1) = (x(n))^3-a*x(n) is my real sequence

The script should read in the value of a and the value x1.

I achieved to do that.

It should then carry out a large number of iterations, without printing the results, to bypass the short-term, transient behaviour, and then print out on the screen a moderate number of further iterations.

I don't know how to do this part.

The script should also display the results in a graphical way. This I can do it after finding a way to do the above part.

Any help is appreciated, thank you very much!