Unload matrix and free memory

前端 未结 3 1136
悲&欢浪女
悲&欢浪女 2021-01-14 10:14

I can load a matrix from text file:

load mydata.txt

The problem is my matrix file is about 250Mb and after several such loads I have no mem

3条回答
  •  迷失自我
    2021-01-14 10:44

    Use clear, or clearvars. By default, MATLAB will create a variable called mydata as a result of your statement, so

    clear mydata
    

提交回复
热议问题