Question: 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

Use Matlab to create this program. Load training_samples.txt into variable named input.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 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!