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 — Toeplitz matrix (chosen constant diagonal bands)
History
Version | Description |
2025.0.0 | Introduction in Scilab. |
Report an issue | ||
<< logspace | Matrix generation | meshgrid >> |