====== Differences ====== This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| 
                    analysis:rhythms:step3 [2016/03/29 19:40] mvdm  | 
                
                    analysis:rhythms:step3 [2018/04/17 15:20] (current) | 
            ||
|---|---|---|---|
| Line 21: | Line 21: | ||
| ==== Motivating example: aliasing ==== | ==== Motivating example: aliasing ==== | ||
| - | Before you begin, do a ''git pull'' from the course repository. Also, to reproduce the figures shown here, change the default font size (''set(0,'DefaultAxesFontSize',18)'' -- a good place to put this is in your path shortcut). | + | Let's start with an example that illustrates what can go wrong if you are not aware of some basic sampling theory ideas. To do so, we will first construct a 10Hz signal, sampled at 1000Hz (i.e. we are taking 1000 measurements per second). Recalling that the frequency //f// of a sine wave is given by $y = sin(2 \pi f t)$: | 
| - | + | ||
| - | Let's start with an example that illustrates what can go wrong if you are not aware of some basic sampling theory ideas. To do so, we will first construct a 10Hz signal, sampled at 1000Hz. Recalling that the frequency //f// of a sine wave is given by $y = sin(2 \pi f t)$: | + | |
| <code matlab> | <code matlab> | ||