Forum Discussion
Altera_Forum
Honored Contributor
13 years agoThere is some error in your sine values but almost correct.
Try this: x = round(255*sin(2*pi*(0:1023)/1024)); x = x(1:256); You should get proper quarter sine from x otherwise tell us what you do with x. you can also just use: x = round(255*sin(2*pi*(0:255)/1024));