[VCLab-Main] [Software] [Matlab Graphics Plugin][MATLAB Graphics Plugin Examples]


MATLAB Graphics Plugin Examples

The Graphics Plugin Examples show


Graphics Plugin Embedding with EMF File
<EMBED SRC="VCLab.emf" NAME="grafik" WIDTH="400" HEIGHT="300">

Below you will see at first a loaded EMF graphic from file VCLab.emf.
Executing showEmf(...) method

Pressing the button  will load an EMF file and map it to the plugin window.

Source code:
<FORM>Pressing the button <INPUT TYPE="button" NAME="show1" VALUE="showEmf" ONCLICK="document.grafik.showEmf('sph.emf');"> will load an EMF file and map it to the plugin window.</FORM>
Executing MATLAB Commands and Apply showClipBoard() method

Enter some MATLAB plot commands here

and execute them by pressing . Pressing  will map the results to the plugin window.

Source code:
<FORM NAME="control">Enter some MATLAB plot commands here<BR><INPUT TYPE="TEXT" NAME="MatlabCommands" SIZE="80" VALUE="x=0:pi/10:2*pi; plot(x,sin(x)); print -dmeta"><BR>and execute them by pressing<INPUT TYPE="BUTTON" NAME="MatlabExecute" VALUE="mEvalString" ONCLICK="document.matlab.mEvalString(document.control.MatlabCommands.value);">. Pressing<INPUT TYPE="button" ONCLICK="document.grafik.showClipBoard();" VALUE="showClipBoard"> will map the results to the plugin window.</FORM>
Start and Stop Methods

Pressing  and  will start and stop scanning the clipboard for a new graphic. Enter some other MATLAB commands above, press the mEvalString button and observe the plugin window.

Source code:
<FORM>Pressing<INPUT TYPE="button" ONCLICK="document.grafik.start();" VALUE="Start">and<INPUT TYPE="button" ONCLICK="document.grafik.stop();" VALUE="Stop"> will start and stop scanning the clipboard for a new graphic. Enter some other MATLAB commands above and press the mEvalString button.</FORM>

[VCLab-Main] [Software] [Matlab Graphics Plugin][MATLAB Graphics Plugin Examples]


©CS 1996, 1997, 1998, 2001