From b63de42767990c15ee6600375dea78a41c57a683 Mon Sep 17 00:00:00 2001 From: Matthias-A-Steiner <62566258+Matthias-A-Steiner@users.noreply.github.com> Date: Thu, 4 Mar 2021 18:53:33 +0100 Subject: [PATCH 1/9] Create README.md --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..9f76642 --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +# matlab-plugin documentation + +I have written documentation files for the Matlab-plugin + * matlab.en.tm + * matlab-abstract.en.tm (basically an adaptation of Joris van der Hoeven's octave-abstract.en.tm) + * matlab-install.en.tm (an installation and configuration instruction. + The startup script included therein is the result of a collaborative effort by jeroen, pireddag, + and me on http://forum.texmacs.cn/t/getting-the-matlab-plugin-working-with-texmacs/368) + * matlab-demo.en (a short guide to show the working of the Matlab-plugin) + +If they are considered useful, I offer them to be included for public use. +Feedback on any shortcomings, inconsistencies or (blatant) errors is more than appreciated. + +Tilda A. Steiner From 1839785a7632edc64141899da9b37250eec4f40b Mon Sep 17 00:00:00 2001 From: Matthias-A-Steiner <62566258+Matthias-A-Steiner@users.noreply.github.com> Date: Thu, 4 Mar 2021 19:20:40 +0100 Subject: [PATCH 2/9] Add files via upload --- matlab-abstract.en.tm | 46 ++++ matlab-demo.en.tm | 501 ++++++++++++++++++++++++++++++++++++++++++ matlab-install.en.tm | 128 +++++++++++ matlab.en.tm | 33 +++ 4 files changed, 708 insertions(+) create mode 100644 matlab-abstract.en.tm create mode 100644 matlab-demo.en.tm create mode 100644 matlab-install.en.tm create mode 100644 matlab.en.tm diff --git a/matlab-abstract.en.tm b/matlab-abstract.en.tm new file mode 100644 index 0000000..9218814 --- /dev/null +++ b/matlab-abstract.en.tm @@ -0,0 +1,46 @@ + + +> + +<\body> + system> + + is a high-level language, primarily intended for numerical + computations. It provides a convenient command line interface for solving + linear and nonlinear problems numerically, and for performing other + numerical experiments using a language that is mostly compatible with + . It may also be used as a batch-oriented language. + + has extensive tools for solving common numerical linear + algebra problems, finding the roots of nonlinear equations, integrating + ordinary functions, manipulating polynomials, and integrating ordinary + differential and differential-algebraic equations. It is easily extensible + and customizable via toolkits and user-defined functions written in + 's own language, or using dynamically loaded modules written + in C++, C, Fortran, or other languages. + + The interface to has been written by way back in 2004 and undergone some reorganization by J in early 2013. Despite its age, it can still be run with + more recent version of . \ A group of enthusiast (pireddag, + jeroen, and Tilda) on have worked on the necessary + modifications to get the plugin up and going. Time will tell if + recoding is required. So, if you like the idea of using + from within , then please help figuring out. + + specifics by Tilda Steiner> + + + + +<\initial> + <\collection> + + + \ No newline at end of file diff --git a/matlab-demo.en.tm b/matlab-demo.en.tm new file mode 100644 index 0000000..5b4e568 --- /dev/null +++ b/matlab-demo.en.tm @@ -0,0 +1,501 @@ + + +> + +<\body> + <\tmdoc-title> + A Sample session + + + A session is started by using .\ + + <\session|matlab|default> + <\output> + \; + + \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ M A T + L A B (R) \ + + \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Copyright 1984-2020 The MathWorks, + Inc. + + \ \ \ \ \ \ \ \ \ \ \ \ \ \ R2020a Update 6 (9.8.0.1538580) 64-bit + (maci64) + + \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ November 23, + 2020 + + \ + + <\with|par-mode|center> + To get started, type doc. + + + <\with|par-mode|center> + For product information, visit www.mathworks.com. + + + + <\input|Matlab] > + \; + + + + as a Calculator> + + Below, we show how to do some linear algebra operations with , + like\ + + <\session|matlab|default> + <\unfolded-subsession> + vector projections (u* of u onto v) + <|unfolded-subsession> + <\unfolded-io> + matlab\\ + <|unfolded-io> + \ u = [3 5]; + + \ v = [7 2]; + + \ dot(u,v)/(norm(v))^2*v + <|unfolded-io> + >|>>>>>> + + + <\input> + matlab\\ + <|input> + \; + + + + + <\session|matlab|default> + <\unfolded-subsession> + matrix operations (display, transpose, invert a matrix, calculate its + det>>, rg>, and Eigenvector) + <|unfolded-subsession> + <\session|matlab|default> + <\input> + matlab\\ + <|input> + \ A=[1 0 0 0; 1 1 0 0; 1 2 1 0; 1 3 3 1] + + + <\unfolded-io> + matlab\\ + <|unfolded-io> + \ tmdisp(A) + <|unfolded-io> + >|>|>|>>|>|>|>|>>|>|>|>|>>|>|>|>|>>>>>> + + + <\unfolded-io> + matlab\\ + <|unfolded-io> + A' + <|unfolded-io> + >|>|>|>>|>|>|>|>>|>|>|>|>>|>|>|>|>>>>>> + + + <\input> + matlab\\ + <|input> + \; + + + + <\session|matlab|default> + <\unfolded-io> + matlab\\ + <|unfolded-io> + inv(A) + <|unfolded-io> + >|>|>|>>|>|>|>|>>|>|>|>|>>|>|>|>|>>>>>> + + + <\unfolded-io> + matlab\\ + <|unfolded-io> + A*inv(A) + <|unfolded-io> + >|>|>|>>|>|>|>|>>|>|>|>|>>|>|>|>|>>>>>> + + + <\unfolded-io> + matlab\\ + <|unfolded-io> + \ det(A) + <|unfolded-io> + + + + <\unfolded-io> + matlab\\ + <|unfolded-io> + \ rank(A) + <|unfolded-io> + + + + <\unfolded-io> + matlab\\ + <|unfolded-io> + \ eig(A) + <|unfolded-io> + >>|>>|>>|>>>>>> + + + <\input> + matlab\\ + <|input> + \; + + + + + + <\session|matlab|default> + <\unfolded-subsession> + power operations on matrices + <|unfolded-subsession> + <\unfolded-subsession> + taking the -th power of a matrix + |)>> + <|unfolded-subsession> + <\unfolded-io> + matlab\\ + <|unfolded-io> + A*A*A + <|unfolded-io> + >|>|>|>>|>|>|>|>>|>|>|>|>>|>|>|>|>>>>>> + + + <\unfolded-io> + matlab\\ + <|unfolded-io> + A^3 + <|unfolded-io> + >|>|>|>>|>|>|>|>>|>|>|>|>>|>|>|>|>>>>>> + + + <\input> + matlab\\ + <|input> + \; + + + \; + + + <\unfolded-subsession> + taking each element > of > to the + -th power + <|unfolded-subsession> + <\unfolded-io> + matlab\\ + <|unfolded-io> + A.^3 + <|unfolded-io> + >|>|>|>>|>|>|>|>>|>|>|>|>>|>|>|>|>>>>>> + + + <\input> + matlab\\ + <|input> + \; + + + \; + + + + + <\session|matlab|default> + <\unfolded-subsession> + solving linear systems in the form **\=\*> + <|unfolded-subsession> + <\unfolded-io> + matlab\\ + <|unfolded-io> + \ C=[2 1 1 1; 1 2 1 1; 1 1 2 1; 1 1 1 2]; b=[1,2,3,4]'; + + \ x=linsolve(C,b); + + \ tmdisp(x) + <|unfolded-io> + >>|>>|>>|>>>>>> + + + <\input> + matlab\\ + <|input> + \; + + + + + Note that can be run both in single-line and multi-line mode.\ + + as a Plotting Engine> + + In this section we give some 2d and 3d specimen of 's plotting + features. To ensure consistency among the figures some formatting + instructions have been outsourced to a file, that is + read-in on starting a -session: + + <\shell-code> + + % startup.m + + \; + + % Set grids on all axis. + + \ \ set(0,'defaultAxesXGrid','on'); + + \ \ set(0,'defaultAxesYGrid','on'); + + \ \ set(0,'defaultAxesZGrid','on'); + + \; + + % Font size + + \ \ set(0,'DefaultTextFontSize',14); + + \ \ set(0,'DefaultAxesFontSize',14); + + \; + + % LaTeX fonts + + \ \ set(groot,'defaultAxesTickLabelInterpreter','latex'); \ + + \ \ set(groot,'defaulttextinterpreter','latex'); + + \ \ set(groot,'defaultLegendInterpreter','latex');\ + + \; + > + + + \; + + There is one draw back, however. Presently the does + not support inline plotting. + + <\session|matlab|default> + <\input> + matlab\\ + <|input> + \ x=linspace(-10,10,1000); + + \ y=x+sin(x); + + \ plot(x,y, 'linewidth', 2.0); + + \ legend({'Function y=x+sin(x)'},'Location','East'); + + + <\input> + matlab\\ + <|input> + \; + + + + \; + + <\with|par-mode|center> + |02_sinusoidal.eps>|0.618par|||> + + + It also possible to read-in and execute .files that are + somewhere in the and follow 's naming + conventions directly from the command line. So, running + + <\session|matlab|default> + <\input> + matlab\\ + <|input> + vector_field_3d_plot + + + + is equivalent to + + <\session|matlab|default> + <\input> + matlab\\ + <|input> + x = linspace(-3, 3, 10); + + y = x; + + z = x; + + [X Y Z] = meshgrid (x, y, z ); + + quiver3(X, Y, Z, ones(size(X)), ones(size(Y)), Z); + + set(gca, "linewidth", 1.00); + + title('3d vector field'); + + + <\input> + matlab\\ + <|input> + \; + + + + <\with|par-mode|center> + |vector-field-3d_plot-m100.eps>|0.618par|||> + + + <\session|matlab|default> + <\input> + matlab\\ + <|input> + [x,y]=meshgrid(linspace(0,1,75)); + + surf(x,y,sin(8*pi*x).* exp(-20*(y-0.5).^2)+exp(-(x-0.5).^2*30 + -(y-0.25).^2 -(x-0.5).*(y-0.25))); + + set(gca, 'linewidth', 1.00); + + xlabel('x-axis'); + + ylabel('y-axis'); + + + <\input> + matlab\\ + <|input> + \; + + + + <\with|par-mode|center> + |SinExp-3d_plot.eps>|0.618par|||> + + + <\session|matlab|default> + <\input> + matlab\\ + <|input> + [x, y] = meshgrid(-5:0.5:5); + + \ \ \ \ Zv = @(x,y) 1 - x - y;\ + + mesh(x,y,Zv(x,y)); + + hold on; + + [x, z] = meshgrid(-5:0.5:5); + + \ \ \ \ Yv = @(x) 2*x; + + surf(x,Yv(x),z); + + hold off; + + shading interp; + + view(110,25); + + set(gca, "linewidth", 1.00); + + title('Intersecting planes in ${R^3}$'); + + xlabel('x-axis'); + + ylabel('y-axis'); + + zlabel('z-axis'); + + + <\input> + matlab\\ + <|input> + \; + + + + <\with|par-mode|center> + |04_intPlanes.eps>|0.618par|||> + + + \; + + > + + The plugin allows for the calling of functions from additional + toolkits. \ Coming back to the first example of our tour, we + used 's freely available toolbox to + plot the above numerically solved vector projection.\ + + <\session|matlab|default> + <\input> + matlab\\ + <|input> + u = [3 5]'; + + v = [7 2]'; + + dot(u,v)./(norm(v)).^2*v; + + puv = dot(u,v)./(norm(v)).^2*v; + + drawVector([u v puv], {'u','v','{ }'});\ + + hold on;\ + + drawSpan(u);\ + + hold on; \ \ \ \ \ \ + + drawLine([u puv], 'r-.'); + + hold off; + + title('Vector projection \\textbf{u*} of \\textbf{u} onto + \\textbf{v}'); + + + <\input> + matlab\\ + <|input> + \; + + + + <\with|par-mode|center> + |vectProj-u2v.eps>|0.618par|||> + + + session> + + It is a good idea to close the -app on the dashboard and + via the button within . This would + shut down the -app causing an \Pabnormal termination\Q due to + a \Psegmentation violation\Q and clutter your \ directory + with -files.\ + + Steiner> + + + + +<\initial> + <\collection> + + + \ No newline at end of file diff --git a/matlab-install.en.tm b/matlab-install.en.tm new file mode 100644 index 0000000..afc9c33 --- /dev/null +++ b/matlab-install.en.tm @@ -0,0 +1,128 @@ + + +> + +<\body> + + + The is a built-in plugin in GNU . It assumes + that is installed on your system. If + is not available, do the + following: + + <\enumerate> + Check if is installed, if not, you will need to + install first. + + Check if command line is in your system path + () + + <\session|scheme|default> + <\unfolded-io|Scheme] > + (url-exists-in-path? "matlab") + <|unfolded-io> + #t + + + <\input|Scheme] > + \; + + + + if not (e.> ), add the directory where + resides to your . + + The way to do this on X> is to create a + softlink to it by issuing\ + + + sudo ln -sf /Applications/MATLAB_R2020a.app/bin/matlab + /usr/local/bin/matlab + > + + This should work in a similar way on other Unix systems and with other + versions of . Now that you have in your + , will show up. + + As you probably need to customize the , you + will want to install it under the : + + + # For GNU/Linux or macOS + + git clone git@github.com:texmacs/matlab.git + $HOME/.TeXmacs/plugins/matlab + + \; + + # For Windows + + git clone git@github.com:texmacs/matlab.git + %APPDATA%\\TeXmacs\\plugins/matlab + > + + Users who do not know about Git can also download the zip-file from + Github and unzip to the corresponding directory. + + Then, it is critical to make sure that the -startup + script in + looks like this:\ + + + <\shell-code> + + # For GNU/Linux or macOS + + \; + + \ #!/bin/bash + + \ \ \ echo -ne "\\002verbatim:" + + \ \ \ PLUGIN_CODE_PATH=$TEXMACS_PATH/plugins/matlab/code/ + + \ \ \ export MATLABPATH="$MATLABPATH:$PLUGIN_CODE_PATH" + + \ \ \ matlab -nodesktop -nosplash -r tmrepl + + \; + > + + + \; + + <\shell-code> + + # For Windows + + \ \ + + ?? tm_matlab.bat ?? No idea - I work on real operating systems ;-) + + \; + > + + + If not, you may to + accordingly. This ensures that is added to the + original as defined by , and that both + are exported when launching a -session from within + . Thus, any user defined configuration in a + , if there is one, will be considered. you're + up and running. + + Steiner> + + + + +<\initial> + <\collection> + + + \ No newline at end of file diff --git a/matlab.en.tm b/matlab.en.tm new file mode 100644 index 0000000..b960bc0 --- /dev/null +++ b/matlab.en.tm @@ -0,0 +1,33 @@ + + +> + +<\body> + plug-in> + + <\traverse> + <\branch> + Short description + + + + + + + + Steiner> + + + + +<\initial> + <\collection> + + + + \ No newline at end of file From c66f6c92b1a4239bd44c43f7ef902ed4c5c82838 Mon Sep 17 00:00:00 2001 From: Matthias-A-Steiner <62566258+Matthias-A-Steiner@users.noreply.github.com> Date: Fri, 5 Mar 2021 05:44:23 +0100 Subject: [PATCH 3/9] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 9f76642..5f1cee3 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,9 @@ I have written documentation files for the Matlab-plugin and me on http://forum.texmacs.cn/t/getting-the-matlab-plugin-working-with-texmacs/368) * matlab-demo.en (a short guide to show the working of the Matlab-plugin) +jeroen, pireddag, and me wrote the script file + * tm_matlab + If they are considered useful, I offer them to be included for public use. Feedback on any shortcomings, inconsistencies or (blatant) errors is more than appreciated. From 1efa1d7b7116429252258c475e82bb7de0a0d517 Mon Sep 17 00:00:00 2001 From: Matthias-A-Steiner <62566258+Matthias-A-Steiner@users.noreply.github.com> Date: Fri, 5 Mar 2021 06:20:48 +0100 Subject: [PATCH 4/9] Add files via upload --- tm_matlab | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tm_matlab diff --git a/tm_matlab b/tm_matlab new file mode 100644 index 0000000..999e9ee --- /dev/null +++ b/tm_matlab @@ -0,0 +1,10 @@ +#!/bin/bash + echo -ne "\002verbatim:" + +# location of plugin-config (tmrepl.m) +# PLUGIN_CODE=$TEXMACS_HOME_PATH/plugins/matlab/code/ + PLUGIN_CODE_PATH=$TEXMACS_PATH/plugins/matlab/code/ +# extend and export MATLABPATH + export MATLABPATH="$MATLABPATH:$PLUGIN_CODE_PATH" +# start Matlab for plugin session + matlab -nodesktop -nosplash -r tmrepl From cd3a65f5cd3c84a4f6856be44e00e3e044101cba Mon Sep 17 00:00:00 2001 From: "Matthias A. Steiner" Date: Fri, 5 Mar 2021 19:15:33 +0100 Subject: [PATCH 5/9] =?UTF-8?q?=09ge=C3=A4ndert:=20=20=20=20=20=20=20READM?= =?UTF-8?q?E.md=20=09ge=C3=A4ndert:=20=20=20=20=20=20=20bin/tm=5Fmatlab=20?= =?UTF-8?q?=09umbenannt:=20=20=20=20=20=20matlab-abstract.en.tm=20->=20doc?= =?UTF-8?q?/matlab-abstract.en.tm=20=09umbenannt:=20=20=20=20=20=20matlab-?= =?UTF-8?q?demo.en.tm=20->=20doc/matlab-demo.en.tm=20=09umbenannt:=20=20?= =?UTF-8?q?=20=20=20=20matlab-install.en.tm=20->=20doc/matlab-install.en.t?= =?UTF-8?q?m=20=09ge=C3=A4ndert:=20=20=20=20=20=20=20doc/matlab.en.tm=20?= =?UTF-8?q?=09gel=C3=B6scht:=20=20=20=20=20=20=20matlab.en.tm=20=09gel?= =?UTF-8?q?=C3=B6scht:=20=20=20=20=20=20=20tm=5Fmatlab?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .DS_Store | Bin 0 -> 6148 bytes README.md | 2 +- bin/tm_matlab | 14 +++++--- .../matlab-abstract.en.tm | 4 +-- matlab-demo.en.tm => doc/matlab-demo.en.tm | 8 ++--- .../matlab-install.en.tm | 2 +- doc/matlab.en.tm | 16 +++++++-- matlab.en.tm | 33 ------------------ tm_matlab | 10 ------ 9 files changed, 31 insertions(+), 58 deletions(-) create mode 100644 .DS_Store rename matlab-abstract.en.tm => doc/matlab-abstract.en.tm (93%) rename matlab-demo.en.tm => doc/matlab-demo.en.tm (99%) rename matlab-install.en.tm => doc/matlab-install.en.tm (98%) delete mode 100644 matlab.en.tm delete mode 100644 tm_matlab diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 interface to has been written by way back in 2004 and undergone some reorganization by J in early 2013. Despite its age, it can still be run with - more recent version of . \ A group of enthusiast (pireddag, + more recent version of . A group of enthusiast (pireddag, jeroen, and Tilda) on have worked on the necessary - modifications to get the plugin up and going. Time will tell if + modifications to get the plugin up and going. Time will tell, if recoding is required. So, if you like the idea of using from within , then please help figuring out. diff --git a/matlab-demo.en.tm b/doc/matlab-demo.en.tm similarity index 99% rename from matlab-demo.en.tm rename to doc/matlab-demo.en.tm index 5b4e568..dce8e96 100644 --- a/matlab-demo.en.tm +++ b/doc/matlab-demo.en.tm @@ -433,9 +433,9 @@ > The plugin allows for the calling of functions from additional - toolkits. \ Coming back to the first example of our tour, we + toolkits. Coming back to the first example of our tour, we used 's freely available toolbox to - plot the above numerically solved vector projection.\ + plot the numerically solved vector projection above.\ <\session|matlab|default> <\input> @@ -455,7 +455,7 @@ drawSpan(u);\ - hold on; \ \ \ \ \ \ + hold on;\ drawLine([u puv], 'r-.'); @@ -481,7 +481,7 @@ It is a good idea to close the -app on the dashboard and via the button within . This would shut down the -app causing an \Pabnormal termination\Q due to - a \Psegmentation violation\Q and clutter your \ directory + a \Psegmentation violation\Q and clutter your directory with -files.\ Steiner> diff --git a/matlab-install.en.tm b/doc/matlab-install.en.tm similarity index 98% rename from matlab-install.en.tm rename to doc/matlab-install.en.tm index afc9c33..f4466ef 100644 --- a/matlab-install.en.tm +++ b/doc/matlab-install.en.tm @@ -97,7 +97,7 @@ \ \ - ?? tm_matlab.bat ?? No idea - I work on real operating systems ;-) + ?? tm_matlab.bat ?? Isn't there a bash shell for Windows? \; > diff --git a/doc/matlab.en.tm b/doc/matlab.en.tm index 8de99d7..b960bc0 100644 --- a/doc/matlab.en.tm +++ b/doc/matlab.en.tm @@ -1,11 +1,21 @@ - + - +> <\body> plug-in> - + <\traverse> + <\branch> + Short description + + + + + + + + Steiner> - -> - -<\body> - plug-in> - - <\traverse> - <\branch> - Short description - - - - - - - - Steiner> - - - - -<\initial> - <\collection> - - - - \ No newline at end of file diff --git a/tm_matlab b/tm_matlab deleted file mode 100644 index 999e9ee..0000000 --- a/tm_matlab +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - echo -ne "\002verbatim:" - -# location of plugin-config (tmrepl.m) -# PLUGIN_CODE=$TEXMACS_HOME_PATH/plugins/matlab/code/ - PLUGIN_CODE_PATH=$TEXMACS_PATH/plugins/matlab/code/ -# extend and export MATLABPATH - export MATLABPATH="$MATLABPATH:$PLUGIN_CODE_PATH" -# start Matlab for plugin session - matlab -nodesktop -nosplash -r tmrepl From cf918a8b194bca652543b2878d7f194bc2143528 Mon Sep 17 00:00:00 2001 From: "Matthias A. Steiner" Date: Tue, 9 Mar 2021 13:11:28 +0100 Subject: [PATCH 6/9] =?UTF-8?q?=20=09neue=20Datei:=20=20=20=20=20.gitignor?= =?UTF-8?q?e=20=20=09ge=C3=A4ndert:=20=20=20=20=20=20=20doc/matlab-install?= =?UTF-8?q?.en.tm=20=20=09ge=C3=A4ndert:=20=20=20=20=20=20=20doc/matlab.en?= =?UTF-8?q?.tm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + doc/matlab-install.en.tm | 4 ++-- doc/matlab.en.tm | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100755 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100755 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/doc/matlab-install.en.tm b/doc/matlab-install.en.tm index f4466ef..4c3d19f 100644 --- a/doc/matlab-install.en.tm +++ b/doc/matlab-install.en.tm @@ -1,4 +1,4 @@ - + > @@ -111,7 +111,7 @@ , if there is one, will be considered. you're up and running. - Steiner> + Steiner> + > @@ -15,7 +15,7 @@ - Steiner> + Date: Sat, 13 Mar 2021 16:34:06 +0100 Subject: [PATCH 7/9] =?UTF-8?q?=09gel=C3=B6scht:=20=20=20=20=20=20=20.DS?= =?UTF-8?q?=5FStore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .DS_Store | Bin 6148 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 5008ddfcf53c02e82d7eee2e57c38e5672ef89f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 Date: Tue, 30 Mar 2021 08:57:53 +0200 Subject: [PATCH 8/9] =?UTF-8?q?=20=09ge=C3=A4ndert:=20=20=20=20=20=20=20do?= =?UTF-8?q?c/matlab-demo.en.tm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/matlab-demo.en.tm | 61 +++++++++++++++++++++++-------------------- 1 file changed, 33 insertions(+), 28 deletions(-) diff --git a/doc/matlab-demo.en.tm b/doc/matlab-demo.en.tm index dce8e96..306ab83 100644 --- a/doc/matlab-demo.en.tm +++ b/doc/matlab-demo.en.tm @@ -1,4 +1,4 @@ - + > @@ -41,14 +41,16 @@ - as a Calculator> + for Linear Algebra Computations> + can be run both in single-line and multi-line input mode. Below, we show how to do some linear algebra operations with , like\ <\session|matlab|default> <\unfolded-subsession> - vector projections (u* of u onto v) + vector projections (\>* of > onto + >) <|unfolded-subsession> <\unfolded-io> matlab\\ @@ -161,7 +163,7 @@ <|unfolded-subsession> <\unfolded-subsession> taking the -th power of a matrix - |)>> + |)>> <|unfolded-subsession> <\unfolded-io> matlab\\ @@ -235,12 +237,15 @@ - Note that can be run both in single-line and multi-line mode.\ + Note, that some calculations require the use of to + have their output displayed, or to have it nicely + formatted. as a Plotting Engine> In this section we give some 2d and 3d specimen of 's plotting - features. To ensure consistency among the figures some formatting + features. Using a file is not mandatory, but it helps, + among others, to ensure consistency among the figures. So, some formatting instructions have been outsourced to a file, that is read-in on starting a -session: @@ -250,7 +255,7 @@ \; - % Set grids on all axis. + % Set grids on all axes. \ \ set(0,'defaultAxesXGrid','on'); @@ -280,10 +285,11 @@ > - \; + \ There is one draw back, however. Presently the does - not support inline plotting. + not support inline plotting. So, the plots have to be saved to disk, and + then linked/inserted (in)to the -document. <\session|matlab|default> <\input> @@ -295,7 +301,7 @@ \ plot(x,y, 'linewidth', 2.0); - \ legend({'Function y=x+sin(x)'},'Location','East'); + \ legend({'y=x+sin(x)'},'Location','East'); <\input> @@ -308,12 +314,12 @@ \; <\with|par-mode|center> - |02_sinusoidal.eps>|0.618par|||> + |02_sinusoidal.eps>|0.618par|||> It also possible to read-in and execute .files that are somewhere in the and follow 's naming - conventions directly from the command line. So, running + conventions directly from the command line. So, running\ <\session|matlab|default> <\input> @@ -323,7 +329,8 @@ - is equivalent to + which is an .file that contains the code below, is equivalent + to executing\ <\session|matlab|default> <\input> @@ -339,18 +346,14 @@ quiver3(X, Y, Z, ones(size(X)), ones(size(Y)), Z); - set(gca, "linewidth", 1.00); + set(gca, 'linewidth', 1.00); title('3d vector field'); - - <\input> - matlab\\ - <|input> - \; - + on the command line. + <\with|par-mode|center> |vector-field-3d_plot-m100.eps>|0.618par|||> @@ -406,7 +409,7 @@ view(110,25); - set(gca, "linewidth", 1.00); + set(gca, 'linewidth', 1.00); title('Intersecting planes in ${R^3}$'); @@ -434,8 +437,9 @@ The plugin allows for the calling of functions from additional toolkits. Coming back to the first example of our tour, we - used 's freely available toolbox to - plot the numerically solved vector projection above.\ + have used 's freely available + toolbox () + to plot the numerically solved vector projection above.\ <\session|matlab|default> <\input> @@ -478,11 +482,12 @@ session> - It is a good idea to close the -app on the dashboard and - via the button within . This would - shut down the -app causing an \Pabnormal termination\Q due to - a \Psegmentation violation\Q and clutter your directory - with -files.\ + At least on Mac OSX, it is a good idea to close the + -app on the dashboard and via the button within . This would shut down the + -app causing an \Pabnormal termination\Q due to a + \Psegmentation violation\Q and clutter your directory with + -files.\ Steiner> From 496b483d8ced3417d7dc7dbbc8230d3488d3ee69 Mon Sep 17 00:00:00 2001 From: Matthias-A-Steiner Date: Fri, 16 Apr 2021 19:15:39 +0200 Subject: [PATCH 9/9] =?UTF-8?q?=09ge=C3=A4ndert:=20=20=20=20=20=20=20doc/m?= =?UTF-8?q?atlab-demo.en.tm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/matlab-demo.en.tm | 58 +++++++++++++++++++++++++++++++++---------- 1 file changed, 45 insertions(+), 13 deletions(-) diff --git a/doc/matlab-demo.en.tm b/doc/matlab-demo.en.tm index 306ab83..3e84b1b 100644 --- a/doc/matlab-demo.en.tm +++ b/doc/matlab-demo.en.tm @@ -43,9 +43,10 @@ for Linear Algebra Computations> - can be run both in single-line and multi-line input mode. - Below, we show how to do some linear algebra operations with , - like\ + At the plugin prompt, commands can be inserted both in + single-line and multi-line input mode. The way to enter multi-line commands + is by pressing the -keys simultaneously. Below, we show + how to do some linear algebra operations with , like\ <\session|matlab|default> <\unfolded-subsession> @@ -75,7 +76,7 @@ <\session|matlab|default> <\unfolded-subsession> matrix operations (display, transpose, invert a matrix, calculate its - det>>, rg>, and Eigenvector) + det>>, rg>, and eigenvectors) <|unfolded-subsession> <\session|matlab|default> <\input> @@ -237,17 +238,48 @@ - Note, that some calculations require the use of to - have their output displayed, or to have it nicely - formatted. + Note that the only displays output when it is not + assigned to a variable, unlike what happens in 's command + window, where the results of all commands that do not terminate with a + semicolon are displayed. The command , for instance, assigns the matrix + to the variable . As the + command is a variable assignment, the plugin will not display the output + that is contained in variable .<\footnote> + The reason being, in a nut shell, that the plugin via the display command + in , lines 11\U15, notices that has an + old value (e.> the string , + f.> line 11). Thus the plugin does not display + anything, even though the command has been executed and the variable + has been defined. Yet, the result assigned to . + So, to force , i.e. the matrix in variable + , to be displayed, you will either have to use + or to have it nicely formatted.\ + + The command performs an on the + previously \Pdefined\Q variable , in this case taking the 3rd + power on matrix >>. The answer, and the + variable, will then be displayed automatically by the plugin.<\footnote> + The evaluated result of an operation assigned to + (f. >, lines + 12f.). This is because these operations produce a new value + for (, f>. + , line 13. Hence, when performing such + operations, no command is needed, as the work is + already being done by , f. + >, line 14. \V Credit for this needs to go to Giovanni + Piredda, who meticulously pointed out the workings of + to me in much more detail. + as a Plotting Engine> - In this section we give some 2d and 3d specimen of 's plotting - features. Using a file is not mandatory, but it helps, - among others, to ensure consistency among the figures. So, some formatting - instructions have been outsourced to a file, that is - read-in on starting a -session: + In this section we give some 2d and 3d specimens of 's + plotting features. Using a file is not mandatory, but + it helps, among others, to ensure consistency among the figures. So, some + formatting instructions have been outsourced to a + file, that is read-in on starting a -session: <\shell-code> @@ -439,7 +471,7 @@ toolkits. Coming back to the first example of our tour, we have used 's freely available toolbox () - to plot the numerically solved vector projection above.\ + to plot the vector projection calculated above.\ <\session|matlab|default> <\input>