Is there a way to declare v as a vector of numbers without a stopping point [0 -1 0 1 0 -1 0 1 … n]? And from that I want to be able to use the number a to get all the entries of vector v. For example: a = 4 v = [0 -1 0 1]
MATLAB: Recurring Sequences of Numbers
declarationvector
Best Answer