I have an array:
A=[1.3 1.2 1.3]
How can I get matrix B using A?
B=[1.3 1.3 1.3; 1.3 1.2 1.3; 1.3 1.3 1.3]
Matrix B has the value of A at the central row,column,and diagonal.
matrix array
A=[1.3 1.2 1.3]
B=[1.3 1.3 1.3; 1.3 1.2 1.3; 1.3 1.3 1.3]
Best Answer