I am writing a code which will need values of $\sin(x)$ for $x = 2^2, 2^3, 2^4, \dots, 2^{25}$
Being fairly new at matlab still, I am unsure how to do this in the most efficient manner.
I know
n=0:10
0 1 2 3 4 5 6 7 8 9 10
But putting in something like
n = 2^2:2^x:2^25
Doesn't make sense, so what would be another way I could do this?
I suppose I could let
x=3:24
But where would I proceed for there?
The following script should work fine:
Let me know if you have any problems.