Given the following matrix:
1 1 1
2 2 2
3 3 3
For k = 3
, I want the following output:
1 1 1
1 1 1
1 1 1
2 2 2
2 2 2
2 2 2
3 3 3
3 3 3
3 3 3
Is there a smart way to do this in vectorized manner in MATLAB?
Given the following matrix:
1 1 1
2 2 2
3 3 3
For k = 3
, I want the following output:
1 1 1
1 1 1
1 1 1
2 2 2
2 2 2
2 2 2
3 3 3
3 3 3
3 3 3
Is there a smart way to do this in vectorized manner in MATLAB?