memory allocation problem
3 ビュー (過去 30 日間)
古いコメントを表示
< 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 件のコメント
回答 (1 件)
Junaid
2012 年 4 月 30 日
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 件のコメント
Junaid
2012 年 4 月 30 日
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
参考
カテゴリ
Help Center および File Exchange で Array and Matrix Mathematics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!