How to save a variable of a original method to disk

1 view (last 30 days)
I have large data and managed to put it into .mat file. But 'out of memory' still appears when I call kmeans() method. Is there a way to store all variables in kmeans to disk.

Answers (2)

Jan
Jan on 14 Feb 2014
Edited: Jan on 14 Feb 2014
No, storing data on the disk will not help. Working commands need their data in the RAM. Disk swapping helps a little bit, but slows doen the processing massively.

Image Analyst
Image Analyst on 15 Feb 2014
Take a subset of your data and throw the rest away. I doubt your kmeans results will change much if you have that much data. If you have 50 million points and run kmeans, then you'll almost certainly come up with the same clusters if you run it on only 1% of those input points.

Community Treasure Hunt

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

Start Hunting!