Answered step by step
Verified Expert Solution
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started