MATLAB: How to put this into matlab code form entropy The m-block entropy of a sequence X is defined as N Hm(X) = − p(m) log2(p(m)) ii i=1. I am not sure how to put this into code form as I don't know how to do block entropy Best Answer Given an "m" vector of indices, and the full vector "p":HmX = − p(m) .* log2(p(m)) Related SolutionsMATLAB: Incorrect Matlab form You need a star (multiplication symbol) after the 2:f=@(x) exp(x) + 2.^(-x) + 2*cos(x) - 6 MATLAB: How to put sequence number in the table form myfile{:,16} = (1:x).'; Related QuestionHow convert an m x n x p image sequence to an m x n x 3 x p sequence efficientlyHow to segment formCreating a polyval functionConverting image to suitable formHow to go through each element of a vector without a for loop
Best Answer