4 lines
85 B
Matlab
4 lines
85 B
Matlab
function r = binomcoeff3(n,k)
|
|
m = pascal(max(n-k,k)+1);
|
|
r = m(n-k+1,k+1);
|
|
end;
|