Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
How to avoid out of memory Error using ==> horzcat

Subject: How to avoid out of memory Error using ==> horzcat

From: anoop Sivasankaran

Date: 18 Mar, 2008 14:33:03

Message: 1 of 1

I had been trying to a system of 1st order ODEs
(Hamiltonian equations of motion for a symmetrical 4body
problem) using standard matlab integrator ode113 (tried
ode45, but not efficient) for a time period of 20000 and
getting some error message like
??? Error using ==> horzcat
Out of memory. Type HELP MEMORY for your options.

Error in ==> ode113 at 691
          yout = [yout, zeros(neq,chunk,dataType)];
My PC got a Intel Pentium Duo processor of 2.80GHz and
2.79GHz clock speed with a 4GB RAM. I tried to increase the
virtual memory and was able to integrate it for 16000 time
steps with ode113 without any errors. I optimised the ode
function using Maple and it still got 275 multiplication
terms in it. I clear the workspace each time i run. But
still getting the out of memory error. The ode function is
regularized. Is there any way to avoid the out of memory


Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us