Path: news.mathworks.com!not-for-mail
From: "Rubi " <phreakadelik@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: CAT Arguments
Date: Fri, 13 Feb 2009 15:52:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 30
Message-ID: <gn44v1$ibg$1@fred.mathworks.com>
References: <gn2bsp$hfn$1@fred.mathworks.com> <gn2v20$eog$1@fred.mathworks.com>
Reply-To: "Rubi " <phreakadelik@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 1234540321 18800 172.30.248.37 (13 Feb 2009 15:52:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 13 Feb 2009 15:52:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 990938
Xref: news.mathworks.com comp.soft-sys.matlab:518133

"Matt Fig" <spamanon@yahoo.com> wrote in message <gn2v20$eog$1@fred.mathworks.com>...
> "Rubi " <phreakadelik@hotmail.com> wrote in message 
> > and im not using vertcat ... thanks in advice :)
> 
> 
> Actually, you are using vertcat when you put a semicolon in between elements in brackets.  Look at these errors:
> 
> ['l',('potts')']  % comma => horzcat
> ['l';('potts')]  % semicolon => vetcat
> 
> I would do something like this if there is no desire to vectorize this:
> 
> 
> cnt = (12 + 1) * (5 + 1);
> for k = 12:-1:0
>     for t = 5:-1:0
>         V1{cnt}  = sprintf('COMB_LIN[%d,%d]:=',[k t]);
>         cnt = cnt - 1;
>     end
> end
> char(V1)  % If you need a char array instead of a cell.
> 
> 
> 
> 
> PJQaGC;KQQCCD'aCGC"{ONDQQXChGoa/[VJJWWQVGhaKPIaaERRMaVaCEON

Thanks a lot for the answers , i got what you mean about horzcat and vetcat :) , the code worked very well , i never tought it would work  using the last number to 0  ..

and i believe this is ur sign PJQaGC;KQQCCD'aCGC"{ONDQQXChGoa/[VJJWWQVGhaKPIaaERRMaVaCEON  :) jejeje thanks both replies