Code covered by the BSD License  

Highlights from
Simuwave

image thumbnail

Simuwave

by

 

A Simulink library for wavelet processing on 1-D signals

binomial(N)
function b = binomial(N)

% computes a matrix whose elements are
%             i
% b[i,j] = (     )
%            j-1

b = zeros(N,N+1);
b(1,1) = 1;
b(1,2) = 1;
for i = 2:N
	b(i,1:i+1) = conv(b(i-1,1:i),[1 1]);
end

Contact us