Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write the code of Matlab, thanks 3. (10 points) Braille, named after its creator Louis Braille, is a tactile writing system used by the

Please write the code of Matlab, thanks

image text in transcribedimage text in transcribed

3. (10 points) Braille, named after its creator Louis Braille, is a tactile writing system used by the visually impaired. Braille characters have rectangular blocks called cells that have tiny bumps or raised dots. The number and arrangement of these dots distinguish one character from another The standard Braille table for alphabets a through z is shown in Fig. 4 Figure 4: en.wikipedia.org/wiki/English_Braille) The Braille table for English alphabets a through z (from Write a function called convertToBraille that accepts a string of English alphabets as input and returns the corresponding Braille translation in matrix form. Referring to the above figure, note that each Braille alphabet can be represented as a 3 2 matrix in which the solid black dots correspond to elements having value 1 and the empty circles correspond to elements having value 0. Each Braille pattern is unique to that English alphabet. When provided with a string comprising multiple alphabets, the corresponding Braille output is constructed by simply concatenating the matrices horizontally. The following is an example of correct function behavior. >>mat-convertToBraille ('taco') mat - Recall that a string is simply a 1D array of characters; so, given a string input, your function can iterate over each English alphabet in the string and concatenate the corresponding Braille matrices as shown in Fig. 5 For your convenience, we have provided you with the table for alphabet conversion, though if you prefer you may design and define your own table structure. The table is stored in a file named brailleTable.mat. Load this file as load ('brailleTable) 3. (10 points) Braille, named after its creator Louis Braille, is a tactile writing system used by the visually impaired. Braille characters have rectangular blocks called cells that have tiny bumps or raised dots. The number and arrangement of these dots distinguish one character from another The standard Braille table for alphabets a through z is shown in Fig. 4 Figure 4: en.wikipedia.org/wiki/English_Braille) The Braille table for English alphabets a through z (from Write a function called convertToBraille that accepts a string of English alphabets as input and returns the corresponding Braille translation in matrix form. Referring to the above figure, note that each Braille alphabet can be represented as a 3 2 matrix in which the solid black dots correspond to elements having value 1 and the empty circles correspond to elements having value 0. Each Braille pattern is unique to that English alphabet. When provided with a string comprising multiple alphabets, the corresponding Braille output is constructed by simply concatenating the matrices horizontally. The following is an example of correct function behavior. >>mat-convertToBraille ('taco') mat - Recall that a string is simply a 1D array of characters; so, given a string input, your function can iterate over each English alphabet in the string and concatenate the corresponding Braille matrices as shown in Fig. 5 For your convenience, we have provided you with the table for alphabet conversion, though if you prefer you may design and define your own table structure. The table is stored in a file named brailleTable.mat. Load this file as load ('brailleTable)

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

More Books

Students also viewed these Databases questions

Question

9. Explain the relationship between identity and communication.

Answered: 1 week ago

Question

2. What are your challenges in the creative process?

Answered: 1 week ago