How to clear virtual memory without closing matlab? -


i working on activity recognition getting out of memory error after processing 1 video.

the maximum possible array turns 444mb 84mb, means can't process more 1 video. using clear all; , close all; can clear matlab memory, how clear virtual memory (ram) space without closing matlab?

any appreciated.

if have of them simultaneously, there not enough memory. assume want process them sequentially. mentioned in this question, may have resort closing matlab , restarting it.

this may sound awfull, little work can ease pain.

here steps can take:

  1. make sure progress written on disk in convenient way, example .mat file list of numbers still need processed.
  2. write wrapper function. function should just:
    • open list
    • make sure next item list gets processed
    • if there left in list, open new matlab session function called, , closes existing session

the last part may not easy find, suppose function want call magic(5), this:

!matlab -r "magic(5)" & exit 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -