Matlab computer science

  1. CLEANING A REAL-WORLD SIGNAL (35 PTS) You’ve just recorded a biosignal, but unfortunately someone was running a motor in the lab throwing off all sorts of interference such that your signal is corrupted with a massive amount of noise as shown in Fig 1. This is really important and you don’t have the opportunity to rerecord it, so you’re going to have to clean it up and figure out what it is from what you have.
  2. Display and review the signal (5 pts, 1 pts each)
  3. Load the data file Lab8Data. This will load a structure that includes the time each sample was recorded as well as the amplitude.
  4. Plot this raw signal as a subplot with appropriate title and labels

iii.Since this is real data and you have the recording times, find the times between each sample

  1. Plot the histogram of the time differences between samples as a second subplot.
  2. Compute the average time between samples. Does this match with your histogram?
  3. Analyzing the Frequency Content (5 pts, 2.5 pts each)

You know there’s noise, but you can’t do much about it until you know what frequency it’s at.Take a look bycompleting the following steps:

Don't use plagiarized sources. Get Your Custom Essay on
Matlab computer science
Just from $13/Page
Order Essay
  1. Compute the Fourier transform of the corrupted signal using your estimated dt from part A.
  2. Plot the Fourier transform with appropriate title and labels. Make a note of the larger spikes – these arethe dominant frequencies of the signal.
  3. Display Spectrogram (10 pts)

The time domain analysis of the corrupted signal doesn’t show much. You should see something in the frequencydomain. Create a spectrogram using the following steps to see if there are any time varying components to thesignal.

  1. Create a vector of frequencies from 0 to half the sampling frequency (2 pts).
  2. Compute the spectrogram using a window width that is a power of 2 (16, 32, 64) and an overlap of 80%of the window width. You may have to try a few window widths to find the best one (2 pts).

iii.Plot the spectrogram with appropriate title and labels. Can you identify the frequency of the noise? Doesit match what you saw in the Fourier transform plot? (6 pts)

  1. Filter the Signal (15 pts)

OK, now you’ve identified the frequency of the noise, it’s time to clean it up. Thing is, you’re not sure how much cleaning you should do. You don’t want to over-filter it, but you also need to be able to identify the signal you recorded. Try a range of filter orders by following these steps.

  1. You’ll be looking over five different filter orders. For comparison, plot the raw signal in the first of 6 subplots. (3 pts)
    1. For close examination, set your x axis limits to 0.5 to 5 s.
  2. Use a loop to (10 pts):
    1. Compute the parameters for the appropriate type of Butterworth filter using a single cutoff frequency for all iterations. The exact frequency is up to you, but it should be away from the “legitimate” frequencies of your signal, but well enough before your noise so that it’s well attenuated.
    2. Iterate the order of the filter from 1 to 5.
    3. Plot the filtered signal with appropriate title (including the order in the title) and axis labels as separate subplots.
      1. For close examination, set your x axis limits to 0.5 to 5 s.
  • Identify the signal. Use the disp command to send a message to the workspace with you guess as to what the biosignal recorded (hint: it’s regular and follows the frequency shown when someone is at rest). (2 pts)
  1. MAKE CASE ORANGE (6 PTS)

It’s Fall and just like the leaves are changing, so is Case. Download the logo from Canvas and use Matlab to revise it to be orange instead of blue. Hint: check what kind of image it is and use the information in one matrix to change the values of the others to set the blend of colors.

  1. FIND THE HIDDEN MESSAGE (4 PTS)

An important message has been recorded in the file Lab8Q3MSG.wav on Canvas, but someone botched the sampling rate. Play the signal and find the best sampling frequency to play it back at in order to determine the message. Use the disp function to write this message to the Command Window.

 

The Homework Labs
Calculate your paper price
Pages (550 words)
Approximate price: -

Our Advantages

Plagiarism Free Papers

We ensure that all our papers are written from scratch. We deliver original plagiarism-free work. To guarantee this, we submit all work alongside a plagiarism report.

Free Revisions

All our papers are completed and submitted before the deadline. We ensure this to provide you with enough time to go through the work and point out any sections or topics that may need revision or polishing. We provide unlimited revision services for free.

Title-page

All papers have a title page providing your personal and institutional information. We do not charge you for this title page.

Bibliography

All papers have a bibliography or references page. This page is a requirement for academic and professional documents. We provide this page at no cost for all our papers.

Originality & Security

At Thehomeworklabs, we guarantee the confidentiality and security of your information. We value our clients and take confidentiality seriously. All personal information is treated with confidentiality and stored safely to ensure that no third parties gain access to it. We also provide original work and attach an originality/plagiarism report alongside all papers.

24/7 Customer Support

Our customer support team is available 24/7 to provide you with any necessary assistance when you need it. You can contact us at any time, day or night, via email or through the live chat button.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

We provide our customers with the best experience in the academic and business writing field.

Pricing

Flexible Pricing

We provide the best quality of service at affordable prices. We also allow our clients to make partial payments for their orders. You can also contact our customer support team in case you need to discuss a different payment plan.

Communication

Admission help & Client-Writer Contact

We realize that sometimes clarification is necessary to ensure that quality work is done. Therefore, we provide a button for clients and writers to communicate in case some clarification is needed.

Deadlines

Paper Submission

We ensure that we submit all papers ahead of their respective deadlines. This allows you to go through the documents and request any revision, corrections, or polishing before the paper is due.

Reviews

Customer Feedback

We encourage customer feedback, positive or negative. We can identify the various areas that we need to improve to provide even better services through your feedback. Please feel free to give us feedback.