?? table_sin120.h
字號:
/***************************************************************
MATLAB program for the sine table generation :
- the table length is one quarter of a period
- no third harmonic injection
N=120;
tab_sin2=zeros(1,N+1);
for i=1:N+1,
tab_sin2(i)=round((sin((i-1)*2*pi/(4*N)))*127);
fprintf('%d,',tab_sin2(i));
if (rem(i,10)==0), fprintf('\n'); end;
end
fprintf('\n');
*****************************************************************/
const unsigned char tab_sin[121]=
{
0,2,3,5,7,8,10,12,13,15,
17,18,20,22,23,25,26,28,30,31,
33,34,36,38,39,41,42,44,46,47,
49,50,52,53,55,56,58,59,61,62,
63,65,66,68,69,71,72,73,75,76,
77,79,80,81,82,84,85,86,87,89,
90,91,92,93,94,95,97,98,99,100,
101,102,103,104,105,106,107,107,108,109,
110,111,112,112,113,114,115,115,116,117,
117,118,119,119,120,120,121,121,122,122,
123,123,123,124,124,125,125,125,125,126,
126,126,126,126,127,127,127,127,127,127,
127
};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -