• Welcome!
  • Blogs

Matrix, Control and Robotics

Matrix, Control and Robotics

Tag Archives: blog

Add footnote in the title of a table/figure

01 Friday May 2015

Posted by junkailu in LaTeX

≈ Leave a comment

Tags

blog

To add a footnote in the title of a table or a figure, the following codes may help:

step 1: add \protect \footnotemark in the title
step 2: add \footnotetext{WordsToExplain} neer this title

Include mathematical expressions in section titles in LaTeX

30 Thursday Apr 2015

Posted by junkailu in LaTeX

≈ Leave a comment

Tags

blog

Sometimes section titles include mathematical expressions.  The following code can help realize this (taking Euler’s Identity as an example):

\usepackage{hyperref}
\usepackage{bm}
\section{Euler's Identity \texorpdfstring{$\bm{e^{i\pi}+1=0}$}{AnythingHere}}

Implementation of time delay to transfer function in MATLAB

29 Wednesday Apr 2015

Posted by junkailu in MATLAB

≈ Leave a comment

Tags

blog

Take the implementation of \dfrac{s+1}{s^2+s+1}\cdot e^{-s} as an example:

Approach I:

s=tf('s');
g1 = (s+1)/(s^2+s+1);
g2 = exp(-s);
g = g1*g2

Approach II:

g=tf([1 1],[1 1 1],'ioDelay',1);

Both the above two approaches give the following result:

Transfer function:
               s + 1
exp(-1*s) * -----------
            s^2 + s + 1

Wiring method for DC regulated switching power supply

29 Wednesday Apr 2015

Posted by junkailu in Hardware

≈ Leave a comment

Tags

blog

This might be trivial, but sometimes may drive those without much hardware experience crazy 🙂

The wiring method for a DC switching power supply is as follows:

AC input: 110V or 220V, sometimes controlled by a switch
“N” — Null Line;
“L” — Live Line;
“Earth”—Earth Line.

DC output:
“-V” — Negative Output;
“+V” — Positive Output.

wiring method for Switching power supply

Example of a DC switching power supply (S-15-5, Mean Well)

Terminologies in statistics

27 Monday Apr 2015

Posted by junkailu in Statistics

≈ Leave a comment

Tags

blog

  1. k-fold cross-validation

In k-fold cross-validation, the original sample is randomly partitioned into k equal size subsamples. Of the k subsamples, a single subsample is retained as the validation data for testing the model, and the remaining k − 1 subsamples are used as training data. The cross-validation process is then repeated k times (the folds), with each of the k subsamples used exactly once as the validation data. The k results from the folds can then be averaged (or otherwise combined) to produce a single estimation. The advantage of this method over repeated random sub-sampling (see below) is that all observations are used for both training and validation, and each observation is used for validation exactly once. 10-fold cross-validation is commonly used, but in general k remains an unfixed parameter.

When k = n (the number of observations), the k-fold cross-validation is exactly the leave-one-out cross-validation.

In stratified k-fold cross-validation, the folds are selected so that the mean response value is approximately equal in all the folds. In the case of a dichotomous classification, this means that each fold contains roughly the same proportions of the two types of class labels.

Reference: Wikipedia

Geometric Jacobian V.S. analytical Jacobian

24 Friday Apr 2015

Posted by junkailu in Robotics

≈ Leave a comment

Tags

blog

Orientation error

09 Friday May 2014

Posted by junkailu in Robotics

≈ Leave a comment

Tags

blog

The orientation error vector is defined as \mathbf{e}_o(t) = \mathbf{r}(t)\sin\phi(t)

OrientationError

Illustration of the orientation error vector

Reference: Luh, J.Y.S. et al, “Resolved-acceleration control of mechanical manipulators,” IEEE Trans. Automat. Contr., vol.25, no.3, pp.468-474, 1980.

Variations of Kalman filter

09 Friday May 2014

Posted by junkailu in Kalman Filter, Linear Systems

≈ Leave a comment

Tags

blog

1. Colored process and output noises

2. Non-zero mean process and output noises

3. No output noises

Two approaches of checking linear system’s detectability

08 Thursday May 2014

Posted by junkailu in Linear Systems

≈ Leave a comment

Tags

blog

Approach I:

Use Kalman Canonical Form Decomposition:

Approach II:

Only check if the modes corresponding to unstable eigenvalues are observable or not. (Since stable modes can always tend to zero asymptotically, we only need to check if the observability of the unstable modes).

  • Find out eigenvalues of transition matrix A \in \mathbb{R}^{n\times n}
  • If all eigenvalues are Hurwitz (continuous-time system) or Schur (discrete-time system), then (C,A) is detectable
  • If there are unstable eigenvalues, say, \lambda, then check

\text{rank}\begin{bmatrix} A-\lambda I\\C\end{bmatrix}

is equal to n or not.

Categories

  • Hardware
  • Kalman Filter
  • LaTeX
  • Linear Systems
  • MATLAB
  • Robotics
  • Statistics

Blog at WordPress.com.

  • Subscribe Subscribed
    • Matrix, Control and Robotics
    • Already have a WordPress.com account? Log in now.
    • Matrix, Control and Robotics
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...