Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Return empty sparse from a mex file
Date: Mon, 26 Oct 2009 11:45:18 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 7
Message-ID: <hc424e$28m$1@fred.mathworks.com>
References: <hc3s2q$fbd$1@fred.mathworks.com> <hc3uqt$dq$1@fred.mathworks.com> <hc40j6$o3d$1@fred.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1256557518 2326 172.30.248.37 (26 Oct 2009 11:45:18 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 26 Oct 2009 11:45:18 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:580049


"Arne Vagren" <arne.vagren@gmail.com> wrote in message <hc40j6$o3d$1@fred.mathworks.com>...
> Thanks for your reply. Actually, in the case nnz = 0, I haven't touched the jc array, it's
> simply an array of zeros of size [number of columns + 1]

Have you changed nzmax to zero accordingly (by using mxSetNzmax)?

Bruno