From: "Steven_Lord" <>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Matrix is singular and is not supposed to be.
Date: Sun, 3 Feb 2013 23:07:53 -0500
Organization: MathWorks
Lines: 29
Message-ID: <kenc6p$m5r$>
References: <kejmtf$igm$>
Mime-Version: 1.0
Content-Type: text/plain;
Content-Transfer-Encoding: 8bit
X-Trace: 1359950873 22715 (4 Feb 2013 04:07:53 GMT)
NNTP-Posting-Date: Mon, 4 Feb 2013 04:07:53 +0000 (UTC)
In-Reply-To: <kejmtf$igm$>
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Newsreader: Microsoft Windows Live Mail 14.0.8089.726
X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8089.726
Xref: comp.soft-sys.matlab:788152

"Hugo " <> wrote in message 
> Hello, I am trying to obtain deflection results on a beam made with shell 
> elements
> I wrote a MATLAB code. The problem is that kk is a matrix with 3000*3000 
> full of zeros (its a singular matrix), and it is not supposed to be.
> The code runs well until I call the function feasmbl1.m, which is shown 
> next


No one will be able to debug this without your data. That means that you're 
going to have to be the one to step through your code (ideally on a SMALLER 
problem, one that you can work out on paper) to determine why it doesn't 
return the results you expect (or determine why your expectations are 

I will suggest that you may want to use the ACCUMARRAY or SPARSE functions 
to perform your accumulation instead of building your own function.

Steve Lord
To contact Technical Support use the Contact Us link on