Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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. IU II: HUOVOZrk--IIMOOD IT:1:::1:IIT: :1::! 14:11; oo myou have Il 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 'l' and a dash is represented by '111'. The space in between the dots and dashes in a character is represented by a 'o'. 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 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

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

Students also viewed these Databases questions