[VCLab-Main] [Software] [Matlab Graphics Plugin][Basic Graphics Plugin Example]


Basic Graphics Plugin Example

This Basic Graphics Plugin Example shows

  • MATLAB Plugin hidden embedding and Graphics Plugin embedding
  • execution of the showClipboard method

MATLAB Plugin Hidden Embedding
<EMBED SRC="bsp3.mm" DISPLAY="false" NAME="matlab" WIDTH="5" HEIGHT="5">

The white square dot of 5x5 pixels above between the words Hidden and Embedding represents the MATLAB Plugin window.
Graphics Plugin Embedding
<EMBED TYPE="image/x-emf" NAME="grafik" WIDTH="400" HEIGHT="300">

Below you will see at first an empty MATLAB Graphics Plugin window.
Executing showClipBoard(...) method

Pressing the button  will plot the data array x, which has been defined on page load by executing bsp3.mm.

Source code:
<FORM>Pressing the button <INPUT TYPE="button" NAME="show1" VALUE="plot(x)" ONCLICK="document.grafik.showClipBoard(document.matlab,'plot(x)');"> will plot the data array x, which has been defined on page load by executing bsp3.mm.</FORM>

Pressing the button  will add the data array 10-x to the previous plot.

Source code:
<FORM>Pressing the button <INPUT TYPE="button" NAME="show1b" VALUE="plot(10-x)" ONCLICK="document.grafik.showClipBoard(document.matlab,'plot(10-x)',true);will add the data array 10-x to the previous plot.</FORM>
Executing showClipBoard() method

Pressing the button  will do some calculation with the data array x and plots a 3D image of the data.

Source code:
<FORM>Pressing the button <INPUT TYPE="button" NAME="show2" VALUE="surfl(y)" ONCLICK="document.matlab.mEvalString('y=cos(x); surfl(y); shading interp; colormap copper; print -dmeta;');document.grafik.showClipBoard();"> will do some calculation with the data array x and plots a 3D image of the data.</FORM>

[VCLab-Main] [Software] [Matlab Graphics Plugin][Basic Graphics Plugin Example]


©CS 1996, 1997, 1998, 2001