MATLAB Excel Builder    

Illustration 1. Output Magic Square Results to Excel

From the main Excel window (not the Visual Basic Editor), display the Macro dialog either by selecting the Alt and F8 keys at the same time or by selecting the Macros option from Tools -> Macro.

Select mymagic from the list and click Run. This procedure returns a magic square of size 4 beginning in cell B2.

Figure 4-3: Magic Square Returned to Excel Worksheet


  Building the Project Illustration 2. Transpose the Output