Zclub討論區 Z板

 找回密码
 註冊
搜索
查看: 363|回复: 0

萬能z版有沒有會寫matlab高手啊???

[复制链接]
发表于 2006-5-17 09:07:24 | 显示全部楼层 |阅读模式
一個接收音頻的程式接收端,已經寫好能夠接收的部份
需要再分析波形,判斷所接收的頻率是哪個數字,並且將它印出
-----------------------------------------------------
clear,clc;
Fs=8000;
Timeout=10;
TriggerLevel=0.5;
RecordTime=2;
AI = analoginput(''winsound'',0);
ch=addchannel(AI,1);
set(AI,''SampleRate'',Fs);
set(AI,''TriggerChannel'',ch)
set(AI,''TriggerType'',''Software'')
set(AI,''Timeout'',Timeout);
set(AI,''TriggerCondition'',''Rising'');
set(AI,''TriggerConditionValue'',TriggerLevel);
set(AI,''SamplesPerTrigger'',RecordTime*Fs);
''Press any key to record.....''
pause
start(AI);
[dataInput,time,abstime,events] = getdata(AI);
[max(dataInput) min(dataInput)]
''Record complete, press any key to play the recorded
sound..''
pause
wavplay(dataInput,Fs);
clear AI;
-------------------------------------------------------
老師已經透露在上述的程式在加入幾行程式就可以了!!!
要如何從dataInput 的部份 分析它的頻率 並且解出他的數字
請各位高手賜教! 謝謝!
能不能畢業就靠各位高手幫忙了 急急急~~~~
Yahoo
您需要登录后才可以回帖 登录 | 註冊

本版积分规则

手機版|Archiver|Z板 Sitetag 訪客統計

GMT+8, 2024-10-5 15:31 , Processed in 0.077738 second(s), 20 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表