This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rate = 8000 | |
freqs = [494 440 392 440 494 494 494] | |
x = 0:1/rate:3.5 | |
y = zeros(x) | |
range = 1:4001 | |
for i = 1:length(freqs) | |
y(range) = exp(-10 * x(range) + 5 * (i - 1)) .* sin(2 * %pi * freqs(i) * x(range)) | |
range = range + 4000 | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on | |
filetype plugin indent on | |
set encoding=utf-8 | |
set showcmd | |
set relativenumber | |
set noswapfile | |
set undofile | |
set undodir=~/.vim/undo | |
set undolevels=1000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\usepackage{listings} | |
\usepackage{lstautogobble} % Fix relative indenting | |
\usepackage{color} % Code coloring | |
\usepackage{zi4} % Nice font | |
\definecolor{bluekeywords}{rgb}{0.13, 0.13, 1} | |
\definecolor{greencomments}{rgb}{0, 0.5, 0} | |
\definecolor{redstrings}{rgb}{0.9, 0, 0} | |
\definecolor{graynumbers}{rgb}{0.5, 0.5, 0.5} |
NewerOlder