Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
このタイプの対角行列について教えてもらえますか?
| 1| | 1 | | 1 | I=| 1 | | 1 | | 1 | |1 |
Matlabでのやり方がわかりません。
使用できます
fliplr(eye(7))
これにより、
ans = 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0
いくつかの追加オプション (完全を期すため):
rot90(eye(7)) flipud(eye(7))