For example: If I have matrix A and Matrix B:
A =
7 4 1 4 5 6 3 6 9
>> B = zeros(4,4)
B =
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
I want I want element (3,2) from matrix B with size (4,4) to try the values of the first column from matrix A with size (3,3) one by one and at each time produce the new matrix. So, the output will be:
B =
0 0 0 0 0 0 7 0 0 0 0 0 0 0 0 0
B =
0 0 0 0 0 0 4 0 0 0 0 0 0 0 0 0
B =
0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0
How can I do this ?
Best Answer