memory allocation problem
    조회 수: 4 (최근 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에서 Programmatic Model Editing에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

