matlab代写-IGNMENT 2
时间:2022-05-02
ASSIGNMENT 2
COLLEGE OF SCIENCES AND ENGINEERING KAA109 ENGINEERING PROBLEM SOLVING AND DATA ANALYSIS COLLEGE OF SCIENCES AND ENGINEERING
Goal
To demonstrate your ability to process and present data using MATLAB.
Requirements
You must write a MATLAB programme that reads data from a CSV file. The data is time
series voltage data from a 4-channel digital signal. Note that each channel contains raw noisy
data.
Your programme must: 1. Plot the decoded digital signals (one subplot per channel). The signal will consist of only zeros and ones. Make sure the data is easy to read (e.g. select appropriate ranges for axes, format the plot with appropriate lines, colours, titles etc.). 2. Plot the noise in each channel (one subplot per channel). Again, ensure the plot is appropriately formatted. 3. Plot the PDF of the noise. Combine the noise from all channels in your analysis. Remember that a PDF is a plot of probabilities of each possible value and therefore the integral over all values is equal to 1. Hint: You can approximate a PDF with a histogram, but remember to scale so that the sum of all values is equal to 1. 4. Decode the message and print it out.
CSV Format
The Comma Separated Value (CSV) data is arranged in 5 columns. The first column is the
time in seconds, the following 4 columns each represent one of the 4 data channels and
values are measured in volts. Each row represents a single sample and samples are taken at a
rate of approximately 10MHz.
The following is an example of the data stored in the CSV file:
time pair1 pair2 pair3 pair4
0 0.718630803 3.523863934 3.321252013 3.412482701
0.0000001 -0.839745388 3.77060973 3.299989987 3.310030321
0.0000002 -0.608612869 2.793071642 3.260331465 3.240651718
0.0000003 -0.256000469 3.192192637 2.84851034 3.09870503
0.0000004 -0.700556344 2.398697764 2.950639872 3.542366351
0.0000005 -0.758451484 2.720914504 3.659589463 4.267144292
0.0000006 0.592524821 2.961151336 2.905615643 3.300000213
Table 1 Sample CSV Data
Digital Signal Decoding
The digital signal is transmitted along 4 twisted pairs (twisted wires, each with a single
stream of data); you can simply consider there to be 4 channels being received at the same
time. The data, however, is made up of 8 bits. So, in order to decode the message, you will
need to read the 4 bits coming in from the 4 channels, then read in the next 4 bits and
combine them to make a total of 8 bits. Each 8 bits of data are a single ASCII character. For
ASSIGNMENT 2
COLLEGE OF SCIENCES AND ENGINEERING KAA109 ENGINEERING PROBLEM SOLVING AND DATA ANALYSIS COLLEGE OF SCIENCES AND ENGINEERING
example, the following data represents the 8-bit numbers 01001000 and 01101001 which are
the ASCII characters “H” and “i”, or the string “Hi”.
pair1 pair2 pair3 pair4
0 1 0 0
1 0 0 0
0 1 1 0
1 0 0 1
Table 2 Example Binary Data
The digital data is encoded so that a value below 1.2V is considered a logic 0 (zero) and a
value above 2.2V is considered to be a logic 1 (one). The true signal will be either 0V (for a
logic 0) or 3.3V (for a logic 1) and any value above or below this will include noise.
Therefore, you will be able to reconstruct the logic values by thresholding (set values > 2.2 to
logic 1 and set values < 1.2 to logic 0). You can then reconstruct the true signal by
multiplying the logic values by 3.3V.
For example, the following signal from a single channel encodes 1, 1, 0, 1, 0, 0, … etc. Note
that it also contains noise.

Figure 1 Example Input Data from a Single Channel
As mentioned in the CSV format description above, the data is sampled at 10MHz. However,
the data rate is only 1Mbps (1 Mega-bits per second, so 10 times slower). As such, there will
be multiple samples per bit in the CSV file. You will need to account for this when decoding
the signal and extracting the ones and zeros.
Submission and Assessment
If there are any terms or concepts mentioned above that you do not understand you will need
to do some research. You may also need to research how to do some things in MATLAB. If
your research does not successfully answer your questions, you may then ask via email
(bmillar@utas.edu.au) or Slack (https://kaa109-2022.slack.com/archives/C03CGU7UL6M).
While you are allowed to search the web for assistance, you must complete the assignment
alone and will fail instantly if your solution appears to be the same as any other students’.
To pass this assessment (50%) you must achieve ALL of the following:
• Submit a single MATLAB file only to the Supplementary Assignment drop box in MyLO.
• Include informative comments in your code to explain what the code is achieving and reference the relevant requirements.
• Meet at least 3 out of the 4 requirements.
-2
-1
0
1
2
3
4
5
0 0.000005 0.00001 0.000015 0.00002
pair4
ASSIGNMENT 2
COLLEGE OF SCIENCES AND ENGINEERING KAA109 ENGINEERING PROBLEM SOLVING AND DATA ANALYSIS COLLEGE OF SCIENCES AND ENGINEERING
To achieve a Distinction (70% or more) you will need to meet all 4 requirements.
To achieve a High-Distinction (80% or more) your solution must be well presented in terms
of comprehensive comments and elegant code structure, be easy to read and understand and
output formats must be well presented.

essay、essay代写