help-octave
[Top][All Lists]
Advanced

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

Re: constructing a matrix from a vector


From: Francesco Potortì
Subject: Re: constructing a matrix from a vector
Date: Wed, 19 Oct 2011 13:42:49 +0200

>> octave> bsxfun(minus,a,b)
>> error: Invalid call to minus.  Correct usage is:
>> 
>>  -- Built-in Function:  minus (X, Y)
>> 
>You have to pass a function handle, as you write it you call the
>function minus without arguments
>
>bsxfun(@minus,a,b)
>is correct

Thank you.  That explains the error and, this way, the results are
indeed the same as when using

  bsxfun("minus",a,b)

-- 
Francesco Potortì (ricercatore)        Voice:  +39.050.315.3058 (op.2111)
ISTI - Area della ricerca CNR          Mobile: +39.348.8283.107
via G. Moruzzi 1, I-56124 Pisa         Fax:    +39.050.315.2040  
(entrance 20, 1st floor, room C71)     Web:    http://fly.isti.cnr.it


reply via email to

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