Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use Matlab to create this program. Load training_samples.txt into variable named input. Suppose we have 4 vowels, the input should have size 40x13. Create a

image text in transcribedUse Matlab to create this program.

Load training_samples.txt into variable named input. Suppose we have 4 vowels, the input should have size 40x13. Create a variable named output which has size 40x4. You can write a short Matlab script to do this. It helps if you have sorted your 40 examples so that all examples of each vowel are gathered together. For row i of input: Assign output(i,:) = [1,0,0,0] if the corresponding vowel is ah; Assign output(i,:) = [0,1,0,0] if the corresponding vowel is eh'; Assign output(i,:) = [0,0,1,0) if the corresponding vowel is 'ee'; Assign output(i,:) = [0,0,0,1) if the corresponding vowel is oo'; (We assign different positions in the output to different vowels, you can choose any order you want, here we use the above order as example) Load training_samples.txt into variable named input. Suppose we have 4 vowels, the input should have size 40x13. Create a variable named output which has size 40x4. You can write a short Matlab script to do this. It helps if you have sorted your 40 examples so that all examples of each vowel are gathered together. For row i of input: Assign output(i,:) = [1,0,0,0] if the corresponding vowel is ah; Assign output(i,:) = [0,1,0,0] if the corresponding vowel is eh'; Assign output(i,:) = [0,0,1,0) if the corresponding vowel is 'ee'; Assign output(i,:) = [0,0,0,1) if the corresponding vowel is oo'; (We assign different positions in the output to different vowels, you can choose any order you want, here we use the above order as example)

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_2

Step: 3

blur-text-image_3

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

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions