Path: news.mathworks.com!not-for-mail
From: "John D'Errico" <woodchips@rochester.rr.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: [ ] function?
Date: Sat, 19 Jul 2008 10:51:02 +0000 (UTC)
Organization: John D'Errico (1-3LEW5R)
Lines: 21
Message-ID: <g5sgum$epd$1@fred.mathworks.com>
References: <g5sevj$ra1$1@fred.mathworks.com>
Reply-To: "John D'Errico" <woodchips@rochester.rr.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1216464662 15149 172.30.248.38 (19 Jul 2008 10:51:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 19 Jul 2008 10:51:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869215
Xref: news.mathworks.com comp.soft-sys.matlab:480429



"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]
> 
> 
> 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