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

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

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)

Categories

Find more on MATLAB Coder in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!