91. >> help magic
'magic' is a function from the file /usr/share/octave/4.0.0/m/s
-- Function File: magic (N)
Create an N-by-N magic square.
A magic square is an arrangement of the integers '1:n^2' s
the row sums, column sums, and diagonal sums are all equal
same value.
Note: N must be greater than 2 for the magic square to exi
Additional help for built-in functions and operators is
available in the online version of the manual. Use the command
'doc <topic>' to search the manual index.
Help and information about Octave is also available on the WWW
at http://www.octave.org and via the help@octave.org
mailing list.
91
92. 단위행렬I연산
>> A
A =
8 1 6
3 5 7
4 9 2
>> I = eye(3)
I =
Diagonal Matrix
1 0 0
0 1 0
0 0 1
92
93. >> A * I
ans =
8 1 6
3 5 7
4 9 2
>> A .* I
ans =
8 0 0
0 5 0
0 0 2
93