Code covered by the BSD License  

Highlights from
MATLAB 7 Fundamentos

image thumbnail

MATLAB 7 Fundamentos

by

 

09 Aug 2004 (Updated )

Companion Software for the book "MATLAB 7 Fundamentos"

exercicios_propostos_04 (n)
% Exercicios Propostos 04
function a = exercicios_propostos_04 (n)
for i=0:n-1
    nf=factorial(i);
    for j=0:i
        a(i+1,j+1)=nf/(factorial(j)*factorial(i-j));
    end
end

Contact us