MATLAB - How to force a specific variable to be stored in memory?

조회 수: 1 (최근 30일)
Dang Manh Truong
Dang Manh Truong 2017년 2월 13일
편집: Walter Roberson 2017년 2월 13일
I have a cell array of classifiers (for example, decision trees) trainmodel = cell(1,100000). And sometimes this thing gets really big, so is there any way to tell MATLAB that if this variable is too big, just store it in the memory? Of course I can use matfile, but the thing is that if it's not too big then it would be slower. Please help me, thank you very much.
  댓글 수: 1
James Tursa
James Tursa 2017년 2월 13일
Store it in what memory? For normal variables, they are already stored in memory the instant they are created. Are you running out of memory? Or having speed/throughput issues?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by