Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please answer this questions using code in MATLAB, thankyou! the message on the file is : 10101010001000 1011101010001011101010001110111011100000001110001010101000100010111010001 Background Morse code is a character encoding

please answer this questions using code in MATLAB, thankyou!
the message on the file is : 10101010001000 1011101010001011101010001110111011100000001110001010101000100010111010001 image text in transcribed
image text in transcribed
image text in transcribed
Background Morse code is a character encoding scheme created for telecommunication in the early 19th century. Morse code uses standardized sequences of two different signal durations called dots and dashes to represent letters and numbers. The Morse code representation' of the 26 letters and numbers are shown in Figure 1 below. A dot duration is the basic unit of time in the code transmission whilst a dash is three times the duration of a dot. For a character of letter or number, the dots and dashes are separated by spaces where each space has the same duration as a dot. Each letter is separated by a space of three units of time, whereas, each word is separated by a space equal to seven units of time. FIGURE 1 MORSE CODE OF LETTERS AND NUMBERS Assuming that you are part of a project team and the project is focusing on developing a program to transmit messages using Morse code. You and your team have decided to use binary sequences to represent the dots and dashes in the Morse code. A dot is represented by '1' and a dash is represented by '111'. The space in between the dots and dashes in a character is represented by a '0'. For example, the letter 'A' is represented as '10111' and 'S' is '10101'. The letters in a word are separated by '000' and the words are separated by '0000000. For example, "sOS' is coded as 101010001110111011100010101 'MY PET' is coded as '111011100011101011101110000000101110111010001000111' 12m4567890 (BCDELOHI-KLMNOP ORST Qla In the morse decoder.m file, write a function file that accepts Morse code of a letter in the form of 1s and Os as input and returns the decoded letter as a string. The following function file header is provided: function [str_letter] = morse_decoder(code) Note: Your function is required to only decode the 26 letters. *You should have no figure window by the end of this task. Qib To ease the development of the program, a message that is coded with Morse code in the form of 1s and Os is used to simulate the received message for the transmission system. The "message_code.txt" given in the template contain a Morse code message in the form of 1s and Os for testing. You have been asked to write a coding to decode the message. In the Q1b.m file, load the data provided in "message_code.txt" and decode the Morse code message using the morse_decoder() written in Q1a. Your solution should decode any message given in the "message_code.txt". Use fprintf() to print the decoded message to a file named "morse_message.txt". The txt file should look like the following: The decoded message is: ??? Note: The Morse code message in the "message_code.txt" is written without punctuation. Your code must be able to decode messages that contains message of any length. *You should have no figure window by the end of this task

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Temporal Databases Research And Practice Lncs 1399

Authors: Opher Etzion ,Sushil Jajodia ,Suryanarayana Sripada

1st Edition

3540645195, 978-3540645191

More Books

Students also viewed these Databases questions