Code created by me does not display the right answer. What needs to be changed in order for the code to provide the good answers?
1 次查看(过去 30 天)
显示 更早的评论
Ok,so I wanted to create a code which recognizes which vowel is pronounced in a recording. I created a database consisting in 40 recordings per each vowel. Here you can find the database: https://we.tl/GB4fZzmhwC Q is the vector which contains the recording I select to compare with the others using k-nn classifier.
Unfortunately I am not getting the expected results which would be: 'closest recording is:41, second closest recording is:42,third closest recording is:43, fourth closest recording is:44, fifth closest recording is:45 vowel is e' as I chose Q(the recording I compare with all others in the database) to be the first recording from the e pronunciations folder in this line of code:"Q=wavread(sprintf('e/1.wav'));"
Note that I attached the database with the pronunciations in this link https://we.tl/GB4fZzmhwC as it was bigger than 5 MB.The main program was attached with paperclip and it's named main2_english.m
9 个评论
Geoff Hayes
2016-5-14
Nicoleta - I wasn't suggesting that you upload all of your data files, only that without your data we won't be able to reproduce the problem that you are observing. As for why you are doing this homework, wouldn't that be a question for your professor? What class are you attending?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!