Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Thread Subject:
saving white noise

Subject: saving white noise

From: Jessica

Date: 19 Sep, 2013 19:38:05

Message: 1 of 1

I am trying to generate a white noise audio file using:

whitenoise = wgn(500000,1,0);
wavwrite(whitenoise,44100,16,'filename');%16 bit, 44.1 Hz

But I get this error:

Warning: Data clipped during write to file:filename

Does anyone know how I can modify this to not get the warning?

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us