The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Temporary output when assigning into slices?
Replies: 10   Last Post: Jan 27, 2013 3:53 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Bruno Luong

Posts: 9,822
Registered: 7/26/08
Re: Temporary output when assigning into slices?
Posted: Jan 23, 2013 7:15 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Matt J" wrote in message <kdptm0$rtt$>...
> "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
> A(:,1)=B*C(:,1);
> If I'm not mistaken, this will be equivalent to
> z=C(:,1); %memory allocation
> A(:,1)=B*z;

There is no temporal memory allocation according to my test (2012B).


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.