memory allocation problem

4 visualizaciones (últimos 30 días)
geo
geo el 29 de Abr. de 2012
< Hello,
I have Simulink model for DVR using simpower system block set and math blocks it contain power electronics blocks I use fixed step solver with ode1 step size (1e-6)/2 the problem is when the simulation start stable status and give good result at simulation time 0.9sec the program give me memory allocation error I need to increase the simulation time for 1.2 sec or decrease step size for (1e-6)/3 to get the desired result but I can not because of this error. what can I do? Matlab version that I use is Matlab R2006a 7.2.0.232
thanks in advance George

Respuestas (1)

Junaid
Junaid el 30 de Abr. de 2012
one way is to increase the RAM. or try to understand your data. If your data is integer and its class (data type) is double then you typecast it to integer.
ex.
a = uint16(a);
or if your data is double but matrix or array is very sparse (most the entries are zero), then use sparse class.
ex.
a = sparse(a);
these are usually step which are used to balance the memory.
  2 comentarios
geo
geo el 30 de Abr. de 2012
Thank you for the answer, how can I apply this command in simulink model or how can I change the data type of my simulink model?
thanks
George
Junaid
Junaid el 30 de Abr. de 2012
I m sorry I didn't relize that this question is related to simulink. I have never used that. Kindly see this link. I hope it will be helpful to you.
http://www.mathworks.in/help/toolbox/simulink/slref/datatypeconversion.html

Iniciar sesión para comentar.

Categorías

Más información sobre General Applications en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by