help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: adding vectors and matrices


From: Andreas Heitmann
Subject: Re: adding vectors and matrices
Date: Fri, 22 Aug 1997 11:32:22 +0200

Hi,

>>>>> "Ted" == Ted Harding <address@hidden> writes:

    Ted>       y = x + v*ones(1,columns(x));

Yes, it works. Many thanks.

    Ted> will do it. I understand John Eaton plans to incorporate a
    Ted> syntax like

    Ted>       y = x .+ v

    Ted> for a future release which will do the same thing (and the
    Ted> corresponding thing if v is a row vector with as many
    Ted> elements as x has columns, i.e.  add v to each row of x).

That would be a great thing. This sort of translations occurs quite
often.

Best Regards,
-- 
Andreas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]