MATLAB Excel Builder    

Illustration 4: Calling myplot

This illustration calls the function myplot with a value of 4. To execute the function, make A7 the active cell. Press F2 and then Enter.

Figure 4-10: Calling myplot with a Value of 4

This procedure plots a line from 1 to 4 in a MATLAB figure window. This graphic can be manipulated as if it were called from MATLAB directly. The calling cell contains 0 because the function does not return a value.

Figure 4-11: myplot Output


  Building the Project Illustration 5: Calling mysum Four Different Ways