Skip to content

Instantly share code, notes, and snippets.

View kaspersoerensen's full-sized avatar

Kasper Sørensen kaspersoerensen

View GitHub Profile

Keybase proof

I hereby claim:

  • I am kaspersoerensen on github.
  • I am kaspersoerensen (https://keybase.io/kaspersoerensen) on keybase.
  • I have a public key ASC3DeFg3PaNkF1kikWjGXzBeoOFco1wJRA3N3vaCW9tkAo

To claim this, I am signing this object:

@kaspersoerensen
kaspersoerensen / preamble.tex
Created December 16, 2014 09:59
Til brug med PGFplots
% Use this package to plots from MATLAB
\usepackage{pgfplots}
\definecolor{blue}{rgb}{ 0 0.4470 0.7410}
\definecolor{red}{rgb}{0.6350 0.0780 0.1840}
\definecolor{orange}{rgb}{0.8500 0.3250 0.0980}
\definecolor{yellow}{rgb}{0.9290 0.6940 0.1250}
\definecolor{purple}{rgb}{ 0.4940 0.1840 0.5560}
\definecolor{green}{rgb}{ 0.4660 0.6740 0.1880}
\pgfplotsset{compat=1.5.1}
\usepackage{tikz}
@kaspersoerensen
kaspersoerensen / subbottom.tex
Last active August 29, 2015 14:10
Two pictures side by side
\begin{figure}[ht]
\centerfloat
% figure 1
\subbottom[]{\label{fig:}%
\scalebox{0.7}{\input{}}}
\quad \quad
% figure 2
\subbottom[]{\label{}%
\scalebox{0.7}{\input{}}}
\caption{}
@kaspersoerensen
kaspersoerensen / one_label.tex
Created November 5, 2014 14:59
Make only one label number in the equation
\begin{equation}
\begin{split}
\label{eq:einthoven_burger_therms}
V_{I} = \bar{c}_L \cdot \bar{p} - \bar{c}_R \cdot \bar{p} \\
V_{II} = \bar{c}_F \cdot \bar{p} - \bar{c}_R \cdot \bar{p} \\
V_{III} = \bar{c}_F \cdot \bar{p} - \bar{c}_L \cdot \bar{p}
\end{split}
\end{equation}
@kaspersoerensen
kaspersoerensen / Conditions.tex
Created November 5, 2014 14:58
How to make the big Tuborg
\[ I = \left\{
\begin{array}{l l}
1 & \quad \text{if the absolute difference in the intensity level} \\
& \quad \text{between the seed point and the voxel at $(x,y,z) \; \leq \; T$}\\
& \\
0 & \quad \text{otherwise}
\end{array} \right. \]
@kaspersoerensen
kaspersoerensen / ListBoxLister
Last active August 29, 2015 14:07
Lav liste med csv-filer MATLAB
% Sti til mappen med CSV filer
path='';
List=dir([path '*.csv']);
lbh = uicontrol(fh,'Style','listbox',...
'String',{List.name}',...
'Value',1,);