Path: news.mathworks.com!not-for-mail
From: "Steven_Lord" <slord@mathworks.com>
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$1@newscl01ah.mathworks.com>
References: <kejmtf$igm$1@newscl01ah.mathworks.com>
NNTP-Posting-Host: ah-slord.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain;
	format=flowed;
	charset="UTF-8";
	reply-type=response
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1359950873 22715 172.28.9.169 (4 Feb 2013 04:07:53 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 4 Feb 2013 04:07:53 +0000 (UTC)
In-Reply-To: <kejmtf$igm$1@newscl01ah.mathworks.com>
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: news.mathworks.com comp.soft-sys.matlab:788152



"Hugo " <hugolopessilva@gmail.com> wrote in message 
news:kejmtf$igm$1@newscl01ah.mathworks.com...
> 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

*snip*

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 
incorrect.)

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
slord@mathworks.com
To contact Technical Support use the Contact Us link on 
http://www.mathworks.com