DSPRelated.com
Forums

sound_recording

Started by fatih karaaslan August 21, 2009
Dear Sirs
I plan to record sound by using a microphone. I have MATLAB 7.4 version. I use simulink-data acquisition toolbox. Sample rate is 8 Khz. I want to record sound for eight hours continously. However I can not record more than one hour because of memory allocation problem.
My question is that MATLAB writes data to RAM?
Can I manage write data to hard disk?
Fatih KARAASLAN
As I understand, yes, all the matlab variables in the workspace will be
stored in RAM (typically in contiguous memory locations for that vector).
I suggest that you should maybe have a while loop that periodically saves
the files to the hard disk and flushes unused variables. Consider
pre-allocating for speed.

try *wavwrite*

Read the matlab documentation.

Good luck,
-Tilak
On Wed, Aug 19, 2009 at 10:06 AM, fatih karaaslan wrote:

> Dear Sirs
> I plan to record sound by using a microphone. I have MATLAB 7.4 version. I
> use simulink-data acquisition toolbox. Sample rate is 8 Khz. I want to
> record sound for eight hours continously. However I can not record more than
> one hour because of memory allocation problem.
> My question is that MATLAB writes data to RAM?
> Can I manage write data to hard disk?
> Fatih KARAASLAN
>
>