multinom

Computes coefficients powers for a multinomial expansion of the form (a_1+...+a_M)^N
224 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 (2024). multinom (https://www.mathworks.com/matlabcentral/fileexchange/32604-multinom), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0