Question: Generate MATLAB code that shows a decaying exponential function for the time axis: t = 0 : 0 . 0 0 1 : 1 ;

Generate MATLAB code that shows a decaying exponential function for the
time axis: t =0:0.001:1;
Set the amplitude to 255 and the exponent to a =-6. Digitize by converting to
unsigned 8bit integer (uint8). Calculate the entropy of this signal. Also,
calculate the entropy of the differential signal (use Matlab diff). The following code can be obtained to determine the probabilities of symbols (the symbols
are integers between 0 and 255):
h = histogram(x,256, 'Normalization', 'Probability');
p = h.Values;
Be careful because some of these probabilities may be zero, so if we just apply
the formula -sum(p.*log2(p)) to this vector, we might get an error. You
need to select the non-zero elements of p and then apply the formula. The calculated entropy was 6.26. The entropy of the differential signal was
around 0.88. Thank you

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!