I would like my vector to go by powers of 2 but everything I tried hasn't worked.
for n = 0:9 pow = (1:2^n:512)end
but this doesn't return a vector with 1, 2, 4, 16, …
What can I do to achieve this?
vector
for n = 0:9 pow = (1:2^n:512)end
Best Answer