Path: news.mathworks.com!not-for-mail
From: "Xiao " <viva_paradise@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Storing the address
Date: Sat, 31 Jan 2009 03:52:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 27
Message-ID: <gm0ht1$m2e$1@fred.mathworks.com>
References: <glud5p$o60$1@fred.mathworks.com> <glum0q$1nr$1@fred.mathworks.com> <glupfd$fv2$1@fred.mathworks.com> <glvc1q$itr$1@fred.mathworks.com> <glvf7h$m2k$1@fred.mathworks.com>
Reply-To: "Xiao " <viva_paradise@hotmail.com>
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 1233373921 22606 172.30.248.37 (31 Jan 2009 03:52:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 31 Jan 2009 03:52:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1681698
Xref: news.mathworks.com comp.soft-sys.matlab:515089


Ya. 

I tried the solution. 

ix=sum(~cellfun(@isempty,test))<=1; 
     test(:,ix)={[]}; 
     [rx,cx,dx]=find(~cellfun(@isempty,test)); 

but it does not display the correct result. The value of dx is a logical value, not the page number of the multi-dimensional array. Only value of the rx and cx is correct.

how can I amend the statement so that it will store the correct address of the multi-dimensional array?

Thanks.

"us " <us@neurol.unizh.ch> wrote in message <glvf7h$m2k$1@fred.mathworks.com>...
> "Xiao"
> > I am still stuck with this problem that i have mentioned earlier...
> 
> a hint:
> 
> simply use the solution, which was shown to you 2 days ago at
> 
> http://groups.google.com/group/comp.soft-sys.matlab/msg/e5f92e263af17f3c
> 
> in a loop...
> 
> us