Jerry
Posts:
72
Registered:
6/14/12


Making a square matrix from two vector
Posted:
Feb 8, 2013 10:42 AM


Hello,
"a" is a vector (size 1by11) and "b" is also a vector (size 11by1), in that the first number of these two vectors is the same so "a1"="b1".
I would like to create a square matrix (size of this matrix is 11by11), from these two vectors in that "a" is the first row of this matrix and "b" is the first column of this matrix. In fact, I am going to use this function [F = (a + b) + (a * b)] to fill out the rest of this matrix. So, the shape of matrix would be in this way:
a1=b1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 b2 b2a2 b2a3 b2a4 b2a5............................................. b3 b3a2 ....................................................................... b4 ................................................................................. b5 ................................................................................. b6 ................................................................................. b7 ................................................................................. b8 ................................................................................. b9 ................................................................................. b10 .................................................................................. b11 .............................................................................b11a11
Thanks, Jerry

