Why does FWRITE fail to completely write out long vectors in MATLAB?

2 views (last 30 days)
I am using FWRITE to write out a long vector of numbers over a network drive and it is not fully writing out the entire vector. Why is this?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, please read below for any possible workarounds:
We have verified that there is a bug in MATLAB that affects the way that FWRITE handles writing large vectors to files on network drives. To work around this issue, divide up your writing into smaller portions. To accomplish this, you may use FWRITE in a WHILE loop over your data and write a block at a time.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!