Calculate the entropy of a source

Assignment Help Electrical Engineering
Reference no: EM131215222

Copy a segment of text into MATLAB as a string (you choose the source of the text).

Then write a MATLAB program to count the relative frequency of each character (ignore all characters that do not correspond to one of the 26 letters and do not make a distinction between upper and lower case).

Using the results of your program, calculate the entropy of a source that outputs the 26 English characters with the probabilities you calculated.

Reference no: EM131215222

Questions Cloud

Write a matlab program to simulate the problem described : Write a MATLAB program to simulate the problem described in given exercise.-  Estimate the average time until escape.
Construct a scatter plot : a. Construct a scatter plot. b. Assuming a linear relationship, use the least-squares method to determine the regression coefficients b0 and b1. c. Interpret the meaning of the slope, b1, in this problem.
What should be said in reply to the ethical subjectivist : Using an example, such as moral reasoning in designing aluminum cans (Petroski) or in designing a portable seat for infants (Whitbeck), discuss how moral reasons can be objective (justified) even though they sometimes allow room for different appl..
Discuss the unemployment rate types and issues : HI5003 Economics for Business Assignment. Unemployment - Discuss the unemployment rate, types, issues, and government policy of Australia and comment unemployment in various states of Australia. You need to specify in different region like NSW, W..
Calculate the entropy of a source : Using the results of your program, Calculate the entropy of a source that outputs the 26 English characters with the probabilities you calculated.
Investigating the market mass : A meat packer is investigating the market mass shown on sausages. A pilot study showed a mean of 11.8kg per pack and a standard deviation of 0.7kg. How many packs should be sampled in order to be 98% confidence that the sample mean will differ by ..
Compute the sqnr in decibels of the quantizer you designed : Compute the SQNR in decibels of the quantizer you designed. -  How does this SQNR compare with that obtained in Example. Can you explain any differences?
Implementation and integration of your concept application : CIS8000 Assignment - In the design process, the best way to show customers, managers, and programmers the product you have in mind and want to create is to make a mockup of the views that compose the application user interface
Compare felt needs ascribed needs and future needs : Compare and contrast "Felt Needs," Ascribed Needs," and "Future Needs". You can be creative in the selection of your diagram or chart. Post your diagram and also identify which one of the "Needs" you feel is most important and why.

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Where can i find a copy of the answers to textbook review

where can i find a copy of the answers to textbook review questions in the industrial motor control 6 th edition by

  Develop a parallel algorithm for an n-dimensional hypercube

An example of a semigroup algorithm is finding the minimum. Develop a parallel algorithm for an n-dimensional hypercube that would determine the minimum data among all processors. Demonstrate your algorithm using a 3 dimensional hypercube

  Draw the logic circuit to represent the boolean expression

Draw the logic circuit to represent the Boolean expression using only NAND gates - State what is meant by input and output interfaces in relation to PLCs.

  How much charge is deposited on the plates

How much charge is deposited on the plates of a 0.05- µF capacitor if 45 V are applied across the capacitor?

  Ind the average power for each element in ac circuit

The problem is a series circuit with the AC voltage of 50V at a phase angle of 0 degrees. Also the resistor has a resistance of 3 ohms. Xc = 5 ohms, X(L) = 9 ohms. All three components are in series. The frequency is 60 Hz.

  What is the maximum number-nc of users that can be supported

Suppose that a 5 Mbps link is being shared by a number of users. Each user alternates between period of activity during which the user  transmits at rate 1 Mbps and periods of silence, when the user does not transmit.

  If a multi-threaded process forks a problem occurs if the

if a multi-threaded process forks a problem occurs if the child gets copies of all the parentss threads. suppose that

  Calculate the total power received by the antenna

A radar antenna transmits 50 kW at 10 GHz. Assume transmission is in a narrow beam, 1 m2 in area, and that within the beam, waves are plane waves. The wave is re?ected from an aircraft but only 1 % of the power propagates in the direction of the a..

  Determine the peak-to-peak output voltage-vpp

A certain sawtooth generator has the following parameter values: Vin: 3v, R: 4.7kohm, C:0.001uf. Determine its peak-to-peak output voltage if the period is 10 us. What is the Vpp

  What must the load be to extract maximum power from circuit

Consider a circuit that is connected to a phasor of 120V/0 degrees. The circuit feeds a 10 ohm resistor on the "hot" lead and then the circuit branches. One branch has a 0.1 A /-300 degree phasor current source (oriented with "arrow oriented right..

  Over what range of l does each medium out perform the other

A sighnal must be transmitted over distance L. You can use aguided (attenuating) medium, like a coaxial cable, or radiation(dissipating) from an antenna. Testing the two media reveals: (a)on the coaxial, transmit power = 20 dBm

  Determine truth table that shows the voltages at the inputs

Given that the resistors that can be used in the lab have a maxpower rating of 1/8W and the logical voltage values will be 0V or5V at the input, determine an appropriate size for the requiredresistor assuming a .

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd