Update Matlab tangled files
This commit is contained in:
1 parent
8f121be23b
commit
8e08e3f3d4
10 files changed
+930
-892
No files matched your search
+58
-30
@@ -44,10 +44,10 @@ The matlab code is accessible on [[https://zenodo.org/record/3894343][Zonodo]] a
|
||||
To run the Matlab code, go in the =matlab= directory and run the following Matlab files corresponding to each section.
|
||||
|
||||
#+caption: Paper's sections and corresponding Matlab files
|
||||
| Sections | Matlab File |
|
||||
|------------------------------------+----------------------------|
|
||||
| Sections | Matlab File |
|
||||
|------------------------------------+--------------------------|
|
||||
| Section [[sec:system_description]] | =s1_system_description.m= |
|
||||
| Section [[sec:iff_pure_int]] | =s2_iff_pure_int.m= |
|
||||
| Section [[sec:iff_pure_int]] | =s2_iff_pure_int.m= |
|
||||
| Section [[sec:iff_pseudo_int]] | =s3_iff_hpf.m= |
|
||||
| Section [[sec:iff_parallel_stiffness]] | =s4_iff_kp.m= |
|
||||
| Section [[sec:comparison]] | =s5_act_damp_comparison.m= |
|
||||
@@ -60,16 +60,19 @@ To run the Matlab code, go in the =matlab= directory and run the following Matla
|
||||
|
||||
** Matlab Init :noexport:ignore:
|
||||
#+begin_src matlab :tangle no :exports none :results silent :noweb yes :var current_dir=(file-name-directory buffer-file-name)
|
||||
<<matlab-dir>>
|
||||
<<matlab-dir>>
|
||||
#+end_src
|
||||
|
||||
#+begin_src matlab :exports none :results silent :noweb yes
|
||||
<<matlab-init>>
|
||||
<<matlab-init>>
|
||||
#+end_src
|
||||
|
||||
#+begin_src matlab :tangle no
|
||||
addpath('./matlab/');
|
||||
addpath('./src/');
|
||||
#+begin_src matlab :tangle no :noweb yes
|
||||
<<m-init-path>>
|
||||
#+end_src
|
||||
|
||||
#+begin_src matlab :eval no :noweb yes
|
||||
<<m-init-path-tangle>>
|
||||
#+end_src
|
||||
|
||||
** System description
|
||||
@@ -440,16 +443,19 @@ Two identical controllers $K_F$ are used to feedback each of the sensed force to
|
||||
|
||||
** Matlab Init :noexport:ignore:
|
||||
#+begin_src matlab :tangle no :exports none :results silent :noweb yes :var current_dir=(file-name-directory buffer-file-name)
|
||||
<<matlab-dir>>
|
||||
<<matlab-dir>>
|
||||
#+end_src
|
||||
|
||||
#+begin_src matlab :exports none :results silent :noweb yes
|
||||
<<matlab-init>>
|
||||
<<matlab-init>>
|
||||
#+end_src
|
||||
|
||||
#+begin_src matlab :tangle no
|
||||
addpath('./matlab/');
|
||||
addpath('./src/');
|
||||
#+begin_src matlab :tangle no :noweb yes
|
||||
<<m-init-path>>
|
||||
#+end_src
|
||||
|
||||
#+begin_src matlab :eval no :noweb yes
|
||||
<<m-init-path-tangle>>
|
||||
#+end_src
|
||||
|
||||
** Plant Parameters
|
||||
@@ -764,16 +770,19 @@ It is shown that for non-null rotating speed, one pole is bound to the right-hal
|
||||
|
||||
** Matlab Init :noexport:ignore:
|
||||
#+begin_src matlab :tangle no :exports none :results silent :noweb yes :var current_dir=(file-name-directory buffer-file-name)
|
||||
<<matlab-dir>>
|
||||
<<matlab-dir>>
|
||||
#+end_src
|
||||
|
||||
#+begin_src matlab :exports none :results silent :noweb yes
|
||||
<<matlab-init>>
|
||||
<<matlab-init>>
|
||||
#+end_src
|
||||
|
||||
#+begin_src matlab :tangle no
|
||||
addpath('./matlab/');
|
||||
addpath('./src/');
|
||||
#+begin_src matlab :tangle no :noweb yes
|
||||
<<m-init-path>>
|
||||
#+end_src
|
||||
|
||||
#+begin_src matlab :eval no :noweb yes
|
||||
<<m-init-path-tangle>>
|
||||
#+end_src
|
||||
|
||||
** Plant Parameters
|
||||
@@ -1160,16 +1169,19 @@ To find the optimum, the gain that maximize the simultaneous damping of the mode
|
||||
|
||||
** Matlab Init :noexport:ignore:
|
||||
#+begin_src matlab :tangle no :exports none :results silent :noweb yes :var current_dir=(file-name-directory buffer-file-name)
|
||||
<<matlab-dir>>
|
||||
<<matlab-dir>>
|
||||
#+end_src
|
||||
|
||||
#+begin_src matlab :exports none :results silent :noweb yes
|
||||
<<matlab-init>>
|
||||
<<matlab-init>>
|
||||
#+end_src
|
||||
|
||||
#+begin_src matlab :tangle no
|
||||
addpath('./matlab/');
|
||||
addpath('./src/');
|
||||
#+begin_src matlab :tangle no :noweb yes
|
||||
<<m-init-path>>
|
||||
#+end_src
|
||||
|
||||
#+begin_src matlab :eval no :noweb yes
|
||||
<<m-init-path-tangle>>
|
||||
#+end_src
|
||||
|
||||
** Schematic
|
||||
@@ -1761,16 +1773,19 @@ These two methods are now compared in terms of added damping, closed-loop compli
|
||||
|
||||
** Matlab Init :noexport:ignore:
|
||||
#+begin_src matlab :tangle no :exports none :results silent :noweb yes :var current_dir=(file-name-directory buffer-file-name)
|
||||
<<matlab-dir>>
|
||||
<<matlab-dir>>
|
||||
#+end_src
|
||||
|
||||
#+begin_src matlab :exports none :results silent :noweb yes
|
||||
<<matlab-init>>
|
||||
<<matlab-init>>
|
||||
#+end_src
|
||||
|
||||
#+begin_src matlab :tangle no
|
||||
addpath('./matlab/');
|
||||
addpath('./src/');
|
||||
#+begin_src matlab :tangle no :noweb yes
|
||||
<<m-init-path>>
|
||||
#+end_src
|
||||
|
||||
#+begin_src matlab :eval no :noweb yes
|
||||
<<m-init-path-tangle>>
|
||||
#+end_src
|
||||
|
||||
** Plant Parameters
|
||||
@@ -2143,10 +2158,23 @@ Critical Damping corresponds to to $\xi = 1$, and thus:
|
||||
#+latex: \printbibliography
|
||||
bibliography:ref.bib
|
||||
|
||||
* Helping Functions :noexport:
|
||||
** Initialize Path
|
||||
#+NAME: m-init-path
|
||||
#+BEGIN_SRC matlab
|
||||
addpath('./matlab/'); % Path for scripts
|
||||
addpath('./matlab/src/'); % Path for functions
|
||||
#+END_SRC
|
||||
|
||||
#+NAME: m-init-path-tangle
|
||||
#+BEGIN_SRC matlab
|
||||
addpath('./src/'); % Path for functions
|
||||
#+END_SRC
|
||||
|
||||
* Functions :noexport:
|
||||
** Sort Poles for the Root Locus
|
||||
:PROPERTIES:
|
||||
:header-args:matlab+: :tangle src/rootLocusPolesSorted.m
|
||||
:header-args:matlab+: :tangle matlab/src/rootLocusPolesSorted.m
|
||||
:header-args:matlab+: :comments none :mkdirp yes :eval no
|
||||
:END:
|
||||
<<sec:rootLocusPolesSorted>>
|
||||
@@ -2291,7 +2319,7 @@ This Matlab function is accessible [[file:src/rootLocusPolesSorted.m][here]].
|
||||
#+end_src
|
||||
|
||||
** =computeSimultaneousDamping=
|
||||
#+begin_src matlab :tangle src/computeSimultaneousDamping.m
|
||||
#+begin_src matlab :tangle matlab/src/computeSimultaneousDamping.m
|
||||
function [xi_min] = computeSimultaneousDamping(g, G, K)
|
||||
[w, xi] = damp(minreal(feedback(G, g*K)));
|
||||
xi_min = 1/min(xi);
|
||||
|
||||
Reference in new issue
Block a user