Borrar filtros
Borrar filtros

Problem with white noise and wav file

1 visualización (últimos 30 días)
jonh
jonh el 8 de Ag. de 2014
Editada: Image Analyst el 9 de Ag. de 2014
[x, fs ] = wavread('hola.wav');
t = 0:1/fs:1;
% Genera Ruido blanco
L = length(t);
var = 2; % varianza
k = randn(1,L); % ruido no uniforme
mean1 = 0.0; % media
ruido = mean1 + sqrt(var)*k; % ruido blanco
x=ruido;
what is the problem? It will no audio signal with the noise but there is only noise, as is done to be both simultaneously I hope answers thank you

Respuestas (1)

Iain
Iain el 8 de Ag. de 2014
It looks like you're doing:
signal = valid_data_read_from_file;
noise = randomly_generated_noise;
signal = noise; % remove the signal entirely and replace it with noise
You should be doing
signal = signal + noise;
  1 comentario
jonh
jonh el 8 de Ag. de 2014
Hi there Does not work If you want I send you the files so that you verify I hope your answer Thank you

Iniciar sesión para comentar.

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by