| MATLAB Excel Builder | ![]() |
Magic Square Examples
The M-file mymagic takes a single input, an integer, and creates a magic square of that size.
The Excel file mymagic.xls uses this function in three different ways:
mymagic with a value of 4. The function returns a magic square of size 4 and populates a range of Excel cells with that magic square.
Note
To get started, copy the distributed directory xlmagic from <matlab>\toolbox\matlabxl\examples\xlmagic to <matlab>\work.
|
| Data Conversion Flags | Creating the Project | ![]() |