Path: news.mathworks.com!newsfeed.mathworks.com!news.maxwell.syr.edu!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>
Subject: Re: simple but urgent
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Message-ID: <fXS8d.1503$Ny6.2541@mencken.net.nih.gov>
Date: Wed, 6 Oct 2004 10:03:51 -0400
NNTP-Posting-Host: 137.187.96.54
X-Trace: mencken.net.nih.gov 1097071435 137.187.96.54 (Wed, 06 Oct 2004 10:03:55 EDT)
NNTP-Posting-Date: Wed, 06 Oct 2004 10:03:55 EDT
Xref: news.mathworks.com comp.soft-sys.matlab:233467




"Lex" <laux5101@gmx.net> wrote in message news:fz21vkbs48zl@legacy...
> Hello,
>
> 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);

Cheers,
Brett