memory allocation problem
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
< 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
0 Commenti
Risposte (1)
Junaid
il 30 Apr 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 Commenti
Junaid
il 30 Apr 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
Vedere anche
Categorie
Scopri di più su Array and Matrix Mathematics in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!