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:
Matlab slows down after apeending to a file

Subject: Matlab slows down after apeending to a file

From: Alex

Date: 3 May, 2012 08:22:12

Message: 1 of 1

Dear all,
I am using matlab R2010b, 32bit version to 1) query a device and 2)store those results to hard disk.

That device, actually is a measurement devices, every one second "feeds" matlab with 256kbytes of data (32.000 number of double precision).

I am appending those measurements to a file and for reducing the extra burden I write those numbers fwrite(fileID, DataToWriteToFile, 'float32') as float32.

After few days the size of the file increases in size (i.e 20Gb after 3 days of non stop getting n storing measurements into a file) and it looks like that the matlab is slowing down. By using tic, toc in my code I have found that this come from the writing part (fwrite).

 I was wondering then if this might be the case as the operating system is 32bit and thus addressing more of a few gigabytes has to start doing "weird" things (like keeping tracks of pointers around for accessing the extra space).

Do you know if there are already mentioned such limitations in literature concerning file limitations in matlab?

I would like to thank you in advance for your reply


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