[转载] 请教生成一个matlab matrix的问题# Unix - 噫吁兮,危乎高哉
r*s
1 楼
【 以下文字转载自 Computation 讨论区 】
【 原文由 redbuds 所发表 】
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
【 原文由 redbuds 所发表 】
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