File Exchange

image thumbnail

multinom

version 1.0.0.0 (1.67 KB) by Damith Senaratne
Computes coefficients powers for a multinomial expansion of the form (a_1+...+a_M)^N

5 Downloads

Updated 19 Aug 2011

View License

Usage: [c, p] = multinom(M,N)

Computes coefficients 'c' & powers 'p' for a multinomial expansion such that

a_1 + ... + a_M)^N = \sum_{k=1}^K c(k) a_1^p(k,1) ... a_M^p(k,M),

where K = nchoosek(N+M-1,N).

'c' is a Kx1 vector of coeficients
'p' is a KxM matrix of powers, with k^th row containing the powers p(k,1) through p(k,M).

Cite As

Damith Senaratne (2021). multinom (https://www.mathworks.com/matlabcentral/fileexchange/32604-multinom), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

Peter Li

Thanks!

Patrick

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!