Path: news.mathworks.com!not-for-mail
From: "Amir Hossein " <a.gharehgozli@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: differnt methods to sum positive numbers to achieve a number
Date: Fri, 12 Dec 2008 14:56:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 4
Message-ID: <ghtu23$ikh$1@fred.mathworks.com>
Reply-To: "Amir Hossein " <a.gharehgozli@gmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1229093763 19089 172.30.248.38 (12 Dec 2008 14:56:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 12 Dec 2008 14:56:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1638623
Xref: news.mathworks.com comp.soft-sys.matlab:506577


consider that we have a number. for example 5. i want to know how i can writhe a code to mention all the different ways that positive numbers can be summed up to give 5.
1+1+1+1+1
2+3
2+2+1