Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
outer product

Subject: outer product

From: david

Date: 9 Dec, 2009 13:37:02

Message: 1 of 4

hello

how can i do a vectors outer product in matlab? i searched the help without results .
thanks

Subject: outer product

From: John D'Errico

Date: 9 Dec, 2009 13:49:01

Message: 2 of 4

"david " <david.sabine760@gmail.com> wrote in message <hfo95u$23a$1@fred.mathworks.com>...
> hello
>
> how can i do a vectors outer product in matlab? i searched the help without results .
> thanks

help bsxfun

John

Subject: outer product

From: david

Date: 9 Dec, 2009 14:16:00

Message: 3 of 4

"John D'Errico" <woodchips@rochester.rr.com> wrote in message <hfo9sd$gm4$1@fred.mathworks.com>...
> "david " <david.sabine760@gmail.com> wrote in message <hfo95u$23a$1@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

Subject: outer product

From: Steven Lord

Date: 9 Dec, 2009 14:51:54

Message: 4 of 4


"david " <david.sabine760@gmail.com> wrote in message
news:hfobf0$59$1@fred.mathworks.com...
> "John D'Errico" <woodchips@rochester.rr.com> wrote in message
> <hfo9sd$gm4$1@fred.mathworks.com>...
>> "david " <david.sabine760@gmail.com> wrote in message
>> <hfo95u$23a$1@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@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us