Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

Topic: Combine two matrices
Replies: 3   Last Post: Feb 3, 2014 3:04 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Milos Milenkovic

Posts: 149
Registered: 4/4/09
Re: Combine two matrices
Posted: Feb 3, 2014 3:04 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

dear,
great, thank you. Just one notice:
ix=~any(A6,2);
> > A6(ix,:)=A5(:,:);


dpb <none@non.net> wrote in message <lcoir3$6en$1@speranza.aioe.org>...
> On 2/3/2014 8:03 AM, dpb wrote:
> > On 2/3/2014 3:45 AM, Milos Milenkovic wrote:
> >> Dear all, how (for various sizes of A5 and A6) to make matrix A6 in
> >> which all rows with zeros are substituted by rows from A5. ...

> >
> > ix=~all(A6,2);
> > A6(ix,:)=A5(ix,:);

>
> ...
>
> ERRATUM:
>
> ix=~any(A6,2);
>
> rather than all(), sorry.
>
>
>
>
>
>




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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.