Forum Discussion
Altera_Forum
Honored Contributor
15 years agosine angle conversion
sir/mam can you plz help me to find sine or cosine angle in decimal range. like sine 30 in the range of 0 to 3954 etc.what is the formula to convert this?
Altera_Forum
Honored Contributor
15 years agoYou defined -I think - your amplitude resolution i.e. 0~3954
but you did not define phase resolution (how many points per cycle), for 256 points: x = sin(2*pi*(0:255)/256); x = round(x*3954);