How do I make a test matrix from two separate vectors with 7 elements?

2 visualizaciones (últimos 30 días)
Hello everyone,
I have two separate vectors of 3 elements and I should make a test matrix of them.
For example I would have vectors: a=[1 2 3] and b=[4;5;6]
Then the test matrix would include the test cases (products between every single element from a and b):
So how do I make a test matrix which includes product between every single element of two vectors?
Thank you for all kind of help.

Respuestas (2)

Wayne King
Wayne King el 18 de Dic. de 2012
Editada: Wayne King el 18 de Dic. de 2012
kron(a,b)
See the help for the Kronecker product

Andrei Bobrov
Andrei Bobrov el 18 de Dic. de 2012

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by