Search All of the Math Forum:

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

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

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

 Messages: [ Previous | Next ]
 Milos Milenkovic Posts: 189 Registered: 4/4/09
Re: Combine two matrices
Posted: Feb 3, 2014 3:04 PM

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.
>
>
>
>
>
>

Date Subject Author
2/3/14 Milos Milenkovic
2/3/14 dpb
2/3/14 dpb
2/3/14 Milos Milenkovic