Forum Discussion
Altera_Forum
Honored Contributor
17 years ago --- Quote Start --- Hi, The frequency depends on your Fs i.e. f = Fs/Number of points per cycle. To generate one sinusoid cycle of n points in Matlab and quantising onto 16 bits signed: data = sin(2*pi*[0:n-1]/n); data = round(data* (2^15-1)/max(data)); you can then display data as a column, copy and paste to a mif file(This is quicker than writing mif text) Kaz --- Quote End --- Hi, kaz... in ur matlab code....if we have to quantising onto 8 bit than what i have to change in it..and where i have to put the frequency...actually u r not using it... plz reply me soon