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?
y=[2:25];
x=sin(2.^y);
PS: How can you put code text?
– Carlos Laguillo Mar 18 '15 at 08:48y=[2:25]; x=sin(2.^y)– Erick Wong Mar 19 '15 at 01:22