Path: news.mathworks.com!not-for-mail
From: "Corinna Schmitt" <csc@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: comparison of cell entries
Date: Wed, 8 Aug 2007 11:45:02 +0000 (UTC)
Organization: University of Stuttgart
Lines: 45
Message-ID: <f9cabu$k9r$1@fred.mathworks.com>
Reply-To: "Corinna Schmitt" <csc@mathworks.com>
NNTP-Posting-Host: webapp-00-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1186573502 20795 172.30.248.35 (8 Aug 2007 11:45:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 8 Aug 2007 11:45:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1071129
Xref: news.mathworks.com comp.soft-sys.matlab:422931


Hallo,

I have a cell construction with 9 columns where the 
following data is stored:

1	  1	  1	  1	  1	  AR_WIZ	  
165855.0	  59748.0	  01_01_01_01 
1	  1	  1	  1	  0	  AR_WIZ	  
139876.0	  60372.0	  01_01_01_01 
	  	  	  	  	  	  71662.0
	  71760.0	   
	  	  	  	  	  	  71447.0
	  71760.0	   
	  	  	  	  	  	  69771.0
	  70356.0	   

Now I want to delete those rows where in column 9 nothing 
stands. My idea was the following one:

x=finalTable;
test='';
for i=1:(numberOfRows-1)
    a=x(i,9)
    if test==a
        for j=1:9
            x(i,j)=[];
        end
    end
end

Here an example: If we look in row 1 a=01_01_01_01 so 
nothing is to do. It is the same with row 2. If we now look 
at line 3 a=''. Now the if-cas eis true and all entries in 
x in row 3 should be set to [] which means that the row 
will be deleted.

At the moment I receive the error message: ??? Undefined 
function or method 'eq' for input arguments of type 'cell'.

All in all I want to downsize x in the way that the rows 
where column 9 is empty will be deleted.

Can anyone help me?

Thanks, Corinna