请教生成一个matlab matrix的问题# Computation - 科学计算
r*s
1 楼
any idea how to make a 1024x1024 matrix like this one in matlab?
this is a 16x16 one.
M1= [1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0;
1 0 0 0 0 0 0 0 -1 0 0 0 0 0 0 0;
0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0;
0 1 0 0 0 0 0 0 0 -1 0 0 0 0 0 0;
0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0;
0 0 1 0 0 0 0 0 0 0 -1 0 0 0 0 0;
0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0;
0 0
this is a 16x16 one.
M1= [1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0;
1 0 0 0 0 0 0 0 -1 0 0 0 0 0 0 0;
0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0;
0 1 0 0 0 0 0 0 0 -1 0 0 0 0 0 0;
0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0;
0 0 1 0 0 0 0 0 0 0 -1 0 0 0 0 0;
0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0;
0 0