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

Thread Subject:
I can't read large wave file up to 1gb in matlab..

Subject: I can't read large wave file up to 1gb in matlab..

From: Maulik Patel

Date: 12 Feb, 2012 09:43:10

Message: 1 of 3

Anyone have a solution to read large size of 1gb wave file.

i got error out of memory...please reply soon

Subject: I can't read large wave file up to 1gb in matlab..

From: Lothar Schmidt

Date: 14 Feb, 2012 09:45:16

Message: 2 of 3

Am 12.02.2012 10:43, schrieb Maulik Patel:
> Anyone have a solution to read large size of 1gb wave file.
>
> i got error out of memory...please reply soon

you will not be able to load the entire file because of memory issues.
you can load segment by segment.

doc wavread

hint:

wsiz=wavread(datei,'size');
nsamp=wsiz(1);
segmentsize=1000;

seg_num=0;
for i1=1:segmentsize:nsamp-segmentsize
seg_num=seg_num+1;
localdata=wavread(file,[i1 i1+segmentsize-1]);
value(seg_num)=dowhateveryouwant(localdata)
end

Subject: I can't read large wave file up to 1gb in matlab..

From: Maulik Patel

Date: 25 Feb, 2012 06:16:24

Message: 3 of 3

Lothar Schmidt <vapooroop@gmx.net> wrote in message <jhdafh$pj4$1@news.albasani.net>...
> Am 12.02.2012 10:43, schrieb Maulik Patel:
> > Anyone have a solution to read large size of 1gb wave file.
> >
> > i got error out of memory...please reply soon
>
> you will not be able to load the entire file because of memory issues.
> you can load segment by segment.
>
> doc wavread
>
> hint:
>
> wsiz=wavread(datei,'size');
> nsamp=wsiz(1);
> segmentsize=1000;
>
> seg_num=0;
> for i1=1:segmentsize:nsamp-segmentsize
> seg_num=seg_num+1;
> localdata=wavread(file,[i1 i1+segmentsize-1]);
> value(seg_num)=dowhateveryouwant(localdata)
> end
............
 but i get wsiz=0.. so any alternate solution ?

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