MATLAB: Running out of memory – MATLAB complains that ROS bag file is too large

matlab ros bag memory

When I try to load ROS bag file the smaller files work fine, however, for larger files, MATLAB errors out complaining running out of memory. Any trick/ workaround to make this work?

Best Answer

The issue could be due to limited Java Heap space available. As a workaround, consider increasing the Java Heap memory available for MATLAB. To do the same, please refer to the link below:
The following post discusses a similar issue:
Hope this helps.