Path: news.mathworks.com!newsfeed.mathworks.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!209.244.4.230!newsfeed1.dallas1.level3.net!news.level3.com!mencken.net.nih.gov!not-for-mail
From: "Brett Shoelson" <shoelson@helix.nih.gov>
Newsgroups: comp.soft-sys.matlab
References: <fz21vkbs48zl@legacy> <fXS8d.1503$Ny6.2541@mencken.net.nih.gov> <41640E96.9070106@ukbf.fu-berlin.de>
Subject: Re: simple but urgent
Lines: 42
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Message-ID: <3iU8d.1508$Ny6.2634@mencken.net.nih.gov>
Date: Wed, 6 Oct 2004 11:36:32 -0400
NNTP-Posting-Host: 137.187.96.54
X-Trace: mencken.net.nih.gov 1097076991 137.187.96.54 (Wed, 06 Oct 2004 11:36:31 EDT)
NNTP-Posting-Date: Wed, 06 Oct 2004 11:36:31 EDT
Xref: news.mathworks.com comp.soft-sys.matlab:233513




"Waldemar Krzok" <waldemar.krzok@ukbf.fu-berlin.de> wrote in message 
news:41640E96.9070106@ukbf.fu-berlin.de...
>
>>>x=zeros(1000,1);
>>>
>>>for i=1:length(Summe)
>>>%   for j=1:5
>>>       if Summe(i,1)>=25, x=Summe(i,:)
>>>
>>>%         & (B(j,1) >= 0) >= 3 ;
>>>end
>>>end
>>>
>>>Matlab gives me for x just one value (1x1), but there a many values in
>>>'Summe' which are >=0 ???
>>>
>>>And how can I predefine x without knowing the exact dimension of x
>>>(lines) in advance?
>>>
>>>
>>
>>
>> Hi Lex,
>> You're clearly new to ML, and probably to programming. I strongly urge 
>> you to read the getting started docs for this program. Besides Waldemar's 
>> solution to your problem, ML has many ways of making dealing with these 
>> kinds of problems a breeze. For instance:
>>
>> x = Summe(Summe>=25);
>
>
> he needs to compare Summe(:,1), but there are still many ways to do it.
>
> Waldemar
>

I guess I just don't understand his question. Or what Summe is, or what he's 
trying to compare.
Brett