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:
??? Maximum variable size allowed by the program is exceeded.

Subject: ??? Maximum variable size allowed by the program is exceeded.

From: wahyoe Unggul

Date: 27 Mar, 2011 12:04:04

Message: 1 of 3

Do you have ideas to help me, if the small size of the matrix is not an error, but if the matrix that are large in case of error
Keg(:,:,1197) =
  1.0e+003 *
         0 0 0 0 0 0
         0 0.0149 0.2631 0 -0.0149 -0.2631
         0 0.2631 4.6506 0 -0.2631 -4.6506
         0 0 0 0 0 0
         0 -0.0149 -0.2631 0 0.0149 0.2631
         0 -0.2631 -4.6506 0 0.2631 4.6506

nel =
        1197
ni =
     6
ndof =
   975

??? Maximum variable size allowed by the program is exceeded.

Error in ==> assembly_t3d at 9
K=zeros(ndof,ndof,nel)

Error in ==> main at 34
        [K] = assembly_t3d( index,IF,IR, Keg )

script
K=zeros(ndof,ndof,nel)
for i=1:nel
    for j=1:ni
        for k=1:ni
            ij=index(i,j)
            ik=index(i,j)
            K(ij,ik,i)=Keg(j,k,i)
        end
    end
end
K=(sum(K,3))

Subject: ??? Maximum variable size allowed by the program is exceeded.

From: Wayne King

Date: 27 Mar, 2011 12:21:04

Message: 2 of 3

"wahyoe Unggul" <wahyoe_slipnot@yahoo.co.id> wrote in message <imn93k$913$1@fred.mathworks.com>...
> Do you have ideas to help me, if the small size of the matrix is not an error, but if the matrix that are large in case of error
> Keg(:,:,1197) =
> 1.0e+003 *
> 0 0 0 0 0 0
> 0 0.0149 0.2631 0 -0.0149 -0.2631
> 0 0.2631 4.6506 0 -0.2631 -4.6506
> 0 0 0 0 0 0
> 0 -0.0149 -0.2631 0 0.0149 0.2631
> 0 -0.2631 -4.6506 0 0.2631 4.6506
>
> nel =
> 1197
> ni =
> 6
> ndof =
> 975
>
> ??? Maximum variable size allowed by the program is exceeded.
>
> Error in ==> assembly_t3d at 9
> K=zeros(ndof,ndof,nel)
>
> Error in ==> main at 34
> [K] = assembly_t3d( index,IF,IR, Keg )
>
> script
> K=zeros(ndof,ndof,nel)
> for i=1:nel
> for j=1:ni
> for k=1:ni
> ij=index(i,j)
> ik=index(i,j)
> K(ij,ik,i)=Keg(j,k,i)
> end
> end
> end
> K=(sum(K,3))

Hi, you haven't specified whether you are using a 32-bit, or 64-bit operating system. But have you read the following tech note:

http://www.mathworks.com/support/tech-notes/1100/1107.html

Wayne

Subject: ??? Maximum variable size allowed by the program is exceeded.

From: wahyoe Unggul

Date: 27 Mar, 2011 13:01:04

Message: 3 of 3

"Wayne King" <wmkingty@gmail.com> wrote in message

> Hi, you haven't specified whether you are using a 32-bit, or 64-bit operating system. But have you read the following tech note:
>
> http://www.mathworks.com/support/tech-notes/1100/1107.html
>
> Wayne

hi Wayne
I use 32-bit operating system, can you help provide a solution?
if I continue to use and compile into an application (exe), does it matter?

Tags for this Thread

No tags are associated with 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