Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions