Info

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

What is the best way to handle huge number of variables when preparing a UI?

조회 수: 1 (최근 30일)
Nicholas
Nicholas 2016년 7월 28일
마감: MATLAB Answer Bot 2021년 8월 20일
Dear All, I coded a UI with MATLAB in which I require a lot of variables from the user. Since during the execution of the UI I need some of them I decided to save all data in *.mat files which are read and written during the execution of the UI. The problem of this implementation is that *.mat can be very big. Thus, I'm thinking about writing variables on file (perhaps binaries) Is there a smart and easy way of achieving this?

답변 (1개)

Stephen23
Stephen23 2016년 7월 28일
편집: Stephen23 2016년 7월 28일
The smart and easy way would be to use mat files.
mat files are binary files, and since version seven have been compressed as well:
Why reinvent the wheel ?
If you are worried about the filesize or save / load times, then read these:
PS: the most important thing to remember is to always load into a variable:
S = load(...);
and never load variables directly into the workspace.
  댓글 수: 1
Nicholas
Nicholas 2016년 7월 28일
Thank you very much for your quick reply. I'll take a look at the links you posted. In case I have other issues I'll write them down here.

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

Community Treasure Hunt

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

Start Hunting!

Translated by