Path: news.mathworks.com!not-for-mail
From: "Xiao " <viva_paradise@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Storing the address
Date: Fri, 30 Jan 2009 17:06:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 69
Message-ID: <glvc1q$itr$1@fred.mathworks.com>
References: <glud5p$o60$1@fred.mathworks.com> <glum0q$1nr$1@fred.mathworks.com> <glupfd$fv2$1@fred.mathworks.com>
Reply-To: "Xiao " <viva_paradise@hotmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1233335162 19387 172.30.248.35 (30 Jan 2009 17:06:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 30 Jan 2009 17:06:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1681698
Xref: news.mathworks.com comp.soft-sys.matlab:515005


Hi all.

I am still stuck with this problem that i have mentioned earlier. 

Can someone help me in this?

Thanks in advance.

"Xiao " <viva_paradise@hotmail.com> wrote in message <glupfd$fv2$1@fred.mathworks.com>...
> Suppose i change the network to something as follows:
> 
> test = cat(3, {   [11]  [12]  [];
>                               []   []       [11];
>                               []   []       [12];
>                               []   []       [];
>                               []   []       [] },  {   [21]  [22]   [];
>                                                          []    []        [21];
>                                                          []    []        [22];
>                                                          []    []        [];
>                                                          []    []        []  } );
> ind = ~cellfun(@isempty,network);
> [rx,cx,dx]=find(ind(:,sum(ind)>1));
> 
> The statement that i had wrote earlier can be used in this context. 
> 
> What i need to obtain is something as follows: 
> % row/Col/Page
>     2/3/1
>     3/3/1
>     2/3/2
>     3/3/2
> 
> but, the results does not tally if you run the program. How can I solve the problem?
> 
> Thanks for any suggestions.
> 
> "Jos " <#10584@fileexchange.com> wrote in message <glum0q$1nr$1@fred.mathworks.com>...
> > "Xiao " <viva_paradise@hotmail.com> wrote in message <glud5p$o60$1@fred.mathworks.com>...
> > > Hi all.                                      
> > > 
> > > I got the following error when executing my program
> > > 
> > > %Error using ==> cellfun%
> > > %Input #2 expected to be a cell array, was double instead.%
> > > 
> > > How can I correct this error?
> > > 
> > > my program is attached as follows:
> > > 
> > > Thanks in advance.
> > > 
> > > network = cat(3, [   11  12  0;
> > >                              0   0   11;
> > >                              0   0   12;
> > >                              0   0   0;
> > >                              0   0   0 ], [21  22  0;
> > >                                               0    0   21;
> > >                                               0    0   22;
> > >                                               0    0   0;
> > >                                               0    0   0]);
> > > ind = ~cellfun(@isempty,network);
> > > [rx,cx,dx]=find(ind(:,sum(ind)>1));
> > 
> > "empty" is not the same as "being zero"
> > 
> > find(network ~= 0)
> > 
> > hth
> > Jos