Whats the purpose of cos function?

조회 수: 1 (최근 30일)
Pooja
Pooja 2013년 6월 26일
%build the matrix
n = 0:N-1;
for k = 0:N-1
if (k>0)
C(k+1,n+1) = cos(pi*(2*n+1)*k/2/N)/sqrt(N)*sqrt(2);
else
C(k+1,n+1) = cos(pi*(2*n+1)*k/2/N)/sqrt(N);
end
end
Is that because of using dct ?or cos function have any other functions ?

답변 (1개)

Walter Roberson
Walter Roberson 2013년 6월 26일
The cosine function was originally created as a "make work" project for medieval tutors, to convince patrons that the tutors knew something exotic that was worth paying for; in this, the trig functions replaced the earlier Latin Squares Mysteries Strategic Work Initiative.
Later, cosine functions were found to have some useful mathematical properties.

카테고리

Help CenterFile Exchange에서 Operating on Diagonal Matrices에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by