필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Size of Parts of File

조회 수: 1 (최근 30일)
Kambren Rowlan
Kambren Rowlan 2017년 7월 26일
마감: MATLAB Answer Bot 2021년 8월 20일
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
Walter Roberson
Walter Roberson 2017년 7월 26일
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.

답변 (1개)

Image Analyst
Image Analyst 2017년 7월 27일
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.

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by