Compute the probabilities of the Kth extension of a source for a given K?

3 vues (au cours des 30 derniers jours)
Anisa Shala
Anisa Shala le 9 Oct 2015
Modifié(e) : Anisa Shala le 9 Oct 2015
A discrete-memoryless information source is described by the probability vector p = {0.2, 0.3, 0.1, 0.4}. I have to write a MATLAB file to compute the probabilities of the Kth extension of this source for a given K. So far I have written the following code:
K=2;
p=[0.2,0.3,0.1,0.4];
P=zeros(length(p)^(K-1),length(p));
Any idea how to continue?

Réponses (0)

Catégories

En savoir plus sur Probability Density Functions dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by