magic
Magic square
Syntax
m = magic(n)
Arguments
- n
real scalar
- m
n x n matrix
Description
m = magic(n) returns a magic square of size n x n.
Examples
m = magic(4)
See also
- toeplitz — matrice de Toeplitz, à bandes diagonales constantes choisies
History
Version | Description |
2025.0.0 | Introduction in Scilab. |
Report an issue | ||
<< logspace | Matrice - génération | meshgrid >> |