Compute the probabilities of the Kth extension of a source for a given K?
조회 수: 2 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Probability Density Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!