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

조회 수: 2 (최근 30일)
Ion
Ion 2012년 12월 18일
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.

답변 (2개)

Wayne King
Wayne King 2012년 12월 18일
편집: Wayne King 2012년 12월 18일
kron(a,b)
See the help for the Kronecker product

Andrei Bobrov
Andrei Bobrov 2012년 12월 18일

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by