Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Size of Parts of File

1 visualización (últimos 30 días)
Kambren Rowlan
Kambren Rowlan el 26 de Jul. de 2017
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I'm breaking up a large file into a bunch of Matlab workspace variables(not to all be loaded at once) and was wondering if there was a recommended number of values to have in each segment (ideal for largest fragments but provides snappy response)
Not looking to get into system specific capabilities more of a rule of thumb.
  1 comentario
Walter Roberson
Walter Roberson el 26 de Jul. de 2017
Could the data reasonably be converted to binary with fixed-width fields? If so then fwrite() it, and to use it, fseek() and fread() the parts you need.

Respuestas (1)

Image Analyst
Image Analyst el 27 de Jul. de 2017
I'd probably do as large a chunk as you can fit into memory. Keep in mind that you may need extra memory for other temporary variables though. Or, do it some other way if that makes more sense, like you're reading in a 20 GB CT image and plan on doing it a slice at a time.

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by