Question
Need assistance with this MATLAB assignment as soon as possible please... ____________________________ You work for a top government contractor in the space industry. You, as
Need assistance with this MATLAB assignment as soon as possible please...
____________________________
You work for a top government contractor in the space industry. You, as a top-tier engineer, have been assigned to work on the NASA contract for work on the upcoming Artemis mission. This mission is attempting to land the first woman and next man on the moon by 2024.
Your contract deals with a high priority safety system that will be equipped on a next generation crew capsule that could replace the existing Orion capsule.
This system has been made purposefully simple - it will constantly listen for a specific signal to be received and it will broadcast a certain audio signal upon reception of the corresponding code.
There are four possible codes (given as MATLAB code):
A = logical([0,1,0,0, 0,0,0,1]); L = logical([0,1,0,0, 1,1,0,0]); V = logical([0,1,0,1, 0,1,1,0]); Z = logical([0,1,0,1, 1,0,1,0]);
Upon receiving a code, your system should broadcast a sinusoid at the correct frequency described below.
Code | Frequency ------------------------ A | 110.00 L | 246.94 V | 311.13 Z | 523.25
In order to figure out what code was received, you are given two test files. For example, "lab_04_code_A.mat" contains a amplitude modulated sinusoidal signal that represents the A code.
Show a plot of "signal" for clarity.
Each symbol lasts for 200 samples (0.2 seconds or 200 ms). There are exactly 8 symbols in each file.
The sample rate for these files is 1000 samples/second. This means that each sample corresponds to 0.001 seconds.
This signal is modulated with a binary square wave. Using binary digits, there are only two options, described below.
carrier amplitude less than 0.3 => logical(0)
carrier amplitude greater than or equal to 0.3 => logical(1)
In order to test your system, an additional code will be tested. This means that you must programmatically decide what code has been given - you cannot assume anything from the file's name alone.
If the received code is not found in the table, DO NOT broadcast an audio signal.
For your output, use SOUNDSC. You should create a COSINE wave with a starting phase of 0 radians. It should start at t=0 and last for 0.25 seconds with a sample rate of 16384 samples/second.
NOTE: make sure you create your t vector with the correct step size that corresponds to 16384 samples/second.
___________________________________________________________________________
It should contain:
- "load" command to load the "signal" vector into the workspace
- Necessary commands to determine the code programmatically
- "soundsc" command that plays audible command
- MATLAB scripting commands you used to generate Figure 1
Figure 1:
Figure 1 simply contains the "signal" vector as received.
- Plot signal vector over SAMPLE NUMBER - do not include an x axis in your plot command.
- Include a descriptive title, xlabel, and ylabel
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started