Path: news.mathworks.com!not-for-mail
From: "ching l" <chinglnc@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: : [ ] function?
Date: Sat, 19 Jul 2008 11:39:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 36
Message-ID: <g5sjom$jhc$1@fred.mathworks.com>
References: <g5sevj$ra1$1@fred.mathworks.com> <g5sgum$epd$1@fred.mathworks.com>
Reply-To: "ching l" <chinglnc@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 1216467542 20012 172.30.248.35 (19 Jul 2008 11:39:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 19 Jul 2008 11:39:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1438759
Xref: news.mathworks.com comp.soft-sys.matlab:480436



"John D'Errico" <woodchips@rochester.rr.com> wrote in
message <g5sgum$epd$1@fred.mathworks.com>...
> "ching l" <chinglnc@hotmail.com> wrote in message 
> <g5sevj$ra1$1@fred.mathworks.com>...
> > this might sound stupid or simple....can I do something like
> > this in matlab?
> > 
> > a= 1, 2, 3 ;
> > 
> > function(a)= [1, 2, 3] Re
> > 
> > 
> > is there such function?
> 
> What are you asking for? Are you asking
> for a function that acts like the [] operator?
> Horzcat is that function, or vertcat, or cat.
> 
> Are you asking for a function that returns
> a constant vector, or something like that? 
> I'm quite confused by your question.
> 
> John

I want to have this in a gui,whenever the call back function
is called, it will create something like this....

function pushbutton7_Callback(hObject, eventdata, handles)

Callback 1= [1, 2, 3])
Callback 2= [Callback 1: 4, 5, 6])
Callback 3= [Callback 2: 7, 8, 9])
Callback 4 = csvwrite ('string', [callback 3+ callback 4])

does it make sense?