Below you will see at first an empty MATLAB Graphics Plugin window.
Executing showClipBoard(...) method
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>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
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>