Update config
This commit is contained in:
106
phd-thesis.org
106
phd-thesis.org
@@ -191,27 +191,27 @@ This is a paragraph
|
||||
\minitoc
|
||||
** 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
|
||||
|
||||
** Figures
|
||||
#+begin_src matlab
|
||||
t = 0:0.01:5; % Time [s]
|
||||
x = sin(2*pi*t); % Output Voltage [V]
|
||||
t = 0:0.01:5; % Time [s]
|
||||
x = sin(2*pi*t); % Output Voltage [V]
|
||||
#+end_src
|
||||
|
||||
#+begin_src matlab
|
||||
figure;
|
||||
plot(t, x);
|
||||
xlabel('Time [s]'); ylabel('Voltage [V]');
|
||||
figure;
|
||||
plot(t, x);
|
||||
xlabel('Time [s]'); ylabel('Voltage [V]');
|
||||
#+end_src
|
||||
|
||||
#+begin_src matlab :tangle no :exports results :results file replace
|
||||
exportFig('figs/matlab_fig_example.pdf', 'width', 'wide', 'height', 'normal');
|
||||
exportFig('figs/matlab_fig_example.pdf', 'width', 'wide', 'height', 'normal');
|
||||
#+end_src
|
||||
|
||||
#+name: fig:matlab_fig_example
|
||||
@@ -222,12 +222,12 @@ This is a paragraph
|
||||
** Table Result
|
||||
|
||||
#+begin_src matlab
|
||||
x = 1:10;
|
||||
y = x.^2;
|
||||
x = 1:10;
|
||||
y = x.^2;
|
||||
#+end_src
|
||||
|
||||
#+begin_src matlab :exports results :results value table replace :tangle no :post addhdr(*this*)
|
||||
data2orgtable([x', y'], {}, {'$x$', '$y = x^2$'}, ' %.0f ');
|
||||
data2orgtable([x', y'], {}, {'$x$', '$y = x^2$'}, ' %.0f ');
|
||||
#+end_src
|
||||
|
||||
#+name: tab:table_name
|
||||
@@ -251,7 +251,7 @@ This is a paragraph
|
||||
Results can be automatically outputed as shown below.
|
||||
|
||||
#+begin_src matlab :results value replace
|
||||
sqrt(2)
|
||||
sqrt(2)
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
@@ -259,7 +259,7 @@ Results can be automatically outputed as shown below.
|
||||
|
||||
|
||||
#+begin_src matlab :results output replace
|
||||
y
|
||||
y
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
@@ -274,13 +274,13 @@ Moreover, we can link to specific bode blocks (Listing [[lst:matlab_figure]] or
|
||||
#+name: lst:matlab_figure
|
||||
#+caption: Code to produce a nice contour plot
|
||||
#+begin_src matlab
|
||||
figure;
|
||||
[X,Y,Z] = peaks;
|
||||
contour(X,Y,Z,20)
|
||||
figure;
|
||||
[X,Y,Z] = peaks;
|
||||
contour(X,Y,Z,20)
|
||||
#+end_src
|
||||
|
||||
#+begin_src matlab :tangle no :exports results :results file replace
|
||||
exportFig('figs/matlab_logo.pdf', 'width', 'small', 'height', 'normal');
|
||||
exportFig('figs/matlab_logo.pdf', 'width', 'small', 'height', 'normal');
|
||||
#+end_src
|
||||
|
||||
#+name: fig:matlab_logo
|
||||
@@ -291,8 +291,8 @@ Moreover, we can link to specific bode blocks (Listing [[lst:matlab_figure]] or
|
||||
#+name: lst:matlab_svd
|
||||
#+caption: Code to compute the Singular Value Decomposition
|
||||
#+begin_src matlab :results output replace
|
||||
A = [1 2; 3 4; 5 6; 7 8]
|
||||
[U,S,V] = svd(A)
|
||||
A = [1 2; 3 4; 5 6; 7 8]
|
||||
[U,S,V] = svd(A)
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
@@ -331,18 +331,18 @@ For instance, the code used to specify the wanted the vertical label is on line
|
||||
#+name: lst:matlab_line_numbers
|
||||
#+caption: Specify Labels
|
||||
#+begin_src matlab +n -r
|
||||
figure;
|
||||
plot(t, x)
|
||||
xlabel('Time [s]');
|
||||
ylabel('Output [V]'); (ref:test)
|
||||
figure;
|
||||
plot(t, x)
|
||||
xlabel('Time [s]');
|
||||
ylabel('Output [V]'); (ref:test)
|
||||
#+end_src
|
||||
|
||||
Numbering can be continued by using =+n= option as shown below.
|
||||
#+begin_src matlab +n
|
||||
figure;
|
||||
plot(t, u)
|
||||
xlabel('Time [s]');
|
||||
ylabel('Input [V]');
|
||||
figure;
|
||||
plot(t, u)
|
||||
xlabel('Time [s]');
|
||||
ylabel('Input [V]');
|
||||
#+end_src
|
||||
|
||||
* Images
|
||||
@@ -367,11 +367,11 @@ Figure [[fig:general_control_names]] shows the results of the Tikz code of listi
|
||||
\coordinate[] (outputv) at ($(P.south east)!0.25!(P.north east)$);
|
||||
|
||||
% Connections and labels
|
||||
\draw[<-] (inputw) node[above left, align=right]{(weighted)\\exogenous inputs\\$w$} -- ++(-1.5, 0);
|
||||
\draw[<-] (inputu) -- ++(-0.8, 0) |- node[left, near start, align=right]{control signals\\$u$} (K.west);
|
||||
\draw[<-] (inputw) -- ++(-1.5, 0);
|
||||
\draw[<-] (inputu) -- ++(-0.8, 0) |- (K.west);
|
||||
|
||||
\draw[->] (outputz) node[above right, align=left]{(weighted)\\exogenous outputs\\$z$} -- ++(1.5, 0);
|
||||
\draw[->] (outputv) -- ++(0.8, 0) |- node[right, near start, align=left]{sensed output\\$v$} (K.east);
|
||||
\draw[->] (outputz) -- ++(1.5, 0);
|
||||
\draw[->] (outputv) -- ++(0.8, 0) |- (K.east);
|
||||
\end{tikzpicture}
|
||||
#+end_src
|
||||
|
||||
@@ -416,28 +416,28 @@ Table [[tab:table_with_equations]] shows a table with some mathematics inside.
|
||||
#+name: tab:table_multiple_heads
|
||||
#+ATTR_LATEX: :font \footnotesize
|
||||
#+caption: Table with multiples groups
|
||||
| | *Classical Control* | *Modern Control* | *Robust Control* |
|
||||
| <l> | <c> | <c> | <c> |
|
||||
|-------------------------+------------------------------------+--------------------------------------+-------------------------------------------------------------------------|
|
||||
| *Date* | 1930- | 1960- | 1980- |
|
||||
|-------------------------+------------------------------------+--------------------------------------+-------------------------------------------------------------------------|
|
||||
| *Tools* | Transfer Functions | State Space formulation | Disk margin |
|
||||
| | Nyquist Plots | Riccati Equations | Systems and Signals Norms ($\mathcal{H}_\infty$, $\mathcal{H}_2$ Norms) |
|
||||
| | Bode Plots | | Closed Loop Transfer Functions |
|
||||
| | Phase and Gain margins | | Weighting Functions |
|
||||
|-------------------------+------------------------------------+--------------------------------------+-------------------------------------------------------------------------|
|
||||
| *Control Architectures* | Proportional, Integral, Derivative | Full State Feedback | General Control Configuration |
|
||||
| | Leads, Lags | LQR, LQG | |
|
||||
| | | Kalman Filters | |
|
||||
|-------------------------+------------------------------------+--------------------------------------+-------------------------------------------------------------------------|
|
||||
| *Advantages* | Study Stability | Automatic Synthesis | Automatic Synthesis |
|
||||
| | Simple | MIMO | MIMO |
|
||||
| | Natural | Optimization Problem | Optimization Problem |
|
||||
| | | | Guaranteed Robustness |
|
||||
| | | | Easy specification of performances |
|
||||
|-------------------------+------------------------------------+--------------------------------------+-------------------------------------------------------------------------|
|
||||
| *Disadvantages* | Manual Method | No Guaranteed Robustness | Required knowledge of specific tools |
|
||||
| | Only SISO | Difficult Rejection of Perturbations | Need a reasonably good model of the system |
|
||||
| | *Classical Control* | *Modern Control* |
|
||||
| <l> | <c> | <c> |
|
||||
|-------------------------+------------------------------------+--------------------------------------|
|
||||
| *Date* | 1930- | 1960- |
|
||||
|-------------------------+------------------------------------+--------------------------------------|
|
||||
| *Tools* | Transfer Functions | State Space formulation |
|
||||
| | Nyquist Plots | Riccati Equations |
|
||||
| | Bode Plots | |
|
||||
| | Phase and Gain margins | |
|
||||
|-------------------------+------------------------------------+--------------------------------------|
|
||||
| *Control Architectures* | Proportional, Integral, Derivative | Full State Feedback |
|
||||
| | Leads, Lags | LQR, LQG |
|
||||
| | | Kalman Filters |
|
||||
|-------------------------+------------------------------------+--------------------------------------|
|
||||
| *Advantages* | Study Stability | Automatic Synthesis |
|
||||
| | Simple | MIMO |
|
||||
| | Natural | Optimization Problem |
|
||||
| | | |
|
||||
| | | |
|
||||
|-------------------------+------------------------------------+--------------------------------------|
|
||||
| *Disadvantages* | Manual Method | No Guaranteed Robustness |
|
||||
| | Only SISO | Difficult Rejection of Perturbations |
|
||||
|
||||
|
||||
* Appendix :ignore:
|
||||
|
Reference in New Issue
Block a user