Introduction - If you have any usage issues, please Google them yourself
The representation of the sequence and the generation of the basic sequence
MATLAB is a vector that represents a sequence. The first element of the MATLAB vector is x (1), not x (0).
To clearly express the sequence {x (n)}; use two vectors, one of which one vector n represents the position of the sequence, and the other one.
X represents the sequence value.