From: david on
hello

how can i do a vectors outer product in matlab? i searched the help without results .
thanks
From: John D'Errico on
"david " <david.sabine760(a)gmail.com> wrote in message <hfo95u$23a$1(a)fred.mathworks.com>...
> hello
>
> how can i do a vectors outer product in matlab? i searched the help without results .
> thanks

help bsxfun

John
From: david on
"John D'Errico" <woodchips(a)rochester.rr.com> wrote in message <hfo9sd$gm4$1(a)fred.mathworks.com>...
> "david " <david.sabine760(a)gmail.com> wrote in message <hfo95u$23a$1(a)fred.mathworks.com>...
> > hello
> >
> > how can i do a vectors outer product in matlab? i searched the help without results .
> > thanks
>
> help bsxfun
>
> John
thanks John,but i have the matlab version 7.1(R14) service Pack3 and i have not bsxfun in my matlab version

thanks
From: Steven Lord on

"david " <david.sabine760(a)gmail.com> wrote in message
news:hfobf0$59$1(a)fred.mathworks.com...
> "John D'Errico" <woodchips(a)rochester.rr.com> wrote in message
> <hfo9sd$gm4$1(a)fred.mathworks.com>...
>> "david " <david.sabine760(a)gmail.com> wrote in message
>> <hfo95u$23a$1(a)fred.mathworks.com>...
>> > hello
>> >
>> > how can i do a vectors outer product in matlab? i searched the help
>> > without results .
>> > thanks
>>
>> help bsxfun
>>
>> John
> thanks John,but i have the matlab version 7.1(R14) service Pack3 and i
> have not bsxfun in my matlab version
>
> thanks

a = [1 2 3];
b = [4 5 6];
c = a'*b

% or:

d = [1; 2; 3];
e = [4; 5; 6];
f = d*e'


--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ