How to generate
A= [ 1 0 3 0 0; ... 0 7 0 0 10; ... 0 0 0 14 15]
from
B = [1 2 3 4 5; ... 6 7 8 9 10; ... 11 12 13 14 15]
[EDITED, Jan, Code formatted]
matrix manipulation
A= [ 1 0 3 0 0; ... 0 7 0 0 10; ... 0 0 0 14 15]
B = [1 2 3 4 5; ... 6 7 8 9 10; ... 11 12 13 14 15]
Best Answer