我如何用声音读取信号()在Matlab中 [英] How I read a signal with sound() In Matlab
问题描述
嗨
我有两个信号首先是输入信号,其他是噪声信号我混合了两个信号并得到了一个信号,现在我想用声音播放这个信号()函数,我需要它的频率,我怎样才能获得混合信号的最后一个信号的频率?
作为更多信息,我的代码就像下面:
[mainsigal,fs] = wavread('mainsignal.wav');
[noisesignal,fs1] = wavread(' noisesignal.wav');%交通信号
s =主信号(:,1);
n = noisesignal(:,1);
l_s =长度;
,I = 1:l_s
h(I)= s(I)+ n(I);
结束
声音(h,?????);
现在我需要为h信号计算fs。
谢谢
hi
I have two signals first is input signal and others is noise signal I mixed two signals and got a signal, now I want play this signal with sound() function and I need frequency of it to play, how can I get the frequency of last signal that is a mixed signal?
as more information my code is like below:
[mainsigal, fs]=wavread('mainsignal.wav');
[noisesignal, fs1]=wavread('noisesignal.wav');%traffic signal
s=mainsignal(:,1);
n=noisesignal(:,1);
l_s=length(s);
for I=1:l_s
h(I)=s(I)+n(I);
end
sound(h,?????);
now I need compute fs for h signal.
thanks
推荐答案
如何获得混合信号的最后一个信号的频率?
how can I get the frequency of last signal that is a mixed signal?
你只需要采样原始信号的频率。
You just need the sampling frequency of the original signal.
这篇关于我如何用声音读取信号()在Matlab中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!