From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Temporary output when assigning into slices?
Date: Thu, 24 Jan 2013 00:02:08 +0000 (UTC)
Organization: Xoran Technologies
Lines: 19
Message-ID: <kdptm0$rtt$>
References: <kdpbb4$gtp$> <kdpg30$6gl$> <kdpja4$jnk$> <kdpk0k$mmi$> <kdpkhg$p22$> <kdprb0$ka6$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1358985728 28605 (24 Jan 2013 00:02:08 GMT)
NNTP-Posting-Date: Thu, 24 Jan 2013 00:02:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1440443
Xref: comp.soft-sys.matlab:787263

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <kdprb0$ka6$>...
> "Matt J" wrote in message <kdpkhg$p22$>...
> > 
> > If so,  why doesn't this apply to both examples? The LHS is the same in these examples.
> Not sure I understand, A(1,:) = ... is not the same as A(:,1) = ....

OK. Well then a 3rd example


If I'm not mistaken, this will be equivalent to 

 z=C(:,1); %memory allocation


All subsref operations, AFAIK, result in freshly allocated memory, even though it's not necessary here.