MATLAB for time series analysis! e.g. M/EEG, ERP, ECG, EMG, fmri or anything else that shows variation over time! Written by!

Size: px
Start display at page:

Download "MATLAB for time series analysis! e.g. M/EEG, ERP, ECG, EMG, fmri or anything else that shows variation over time! Written by!"

Transcription

1 MATLAB for time series analysis e.g. M/EEG, ERP, ECG, EMG, fmri or anything else that shows variation over time Written by Joe Bathelt, MSc PhD candidate Developmental Cognitive Neuroscience Unit UCL Institute of Child Health

2 Introduction Cognitive Neuroscience data often consists of time varying signals. These might be changes in amplitude over time like the BOLD signal or changes in voltage or magnetic field strength for other imaging modalities. The analysis of these signals is very similar. We are often interested in the difference in peak or mean amplitude between conditions or participant groups. Fortunately, it is quite easy to extract these measures with MATLAB and it also allows the user to produce beautiful figures to visualise the data. The added benefit is that the we can write scripts that automate a lot of the work and decrease the influence of user errors. This tutorial will explain how to do some of the analysis in MATLAB itself. They are toolboxes with and without graphical user interfaces for many aspects of preprocessing and visualisation of data that are specific to each method. A list of toolboxes can be found in the appendix. Most of these toolboxes offer extensive documentation and often online tutorials or even video instructions. Therefore, this tutorial will mostly be concerned with the analysis and visualisation of data that is already preprocessed. We will learn how to plot data, extract measures and perform simple statistical tests in both the time and frequency domain. This handout is structured in two parts: In the first section, you will find descriptions of the analyses with practices. In the second section, you can find the solution to all practices. Please make use of the MATLAB documentation with the help function. Also refer to the function reference in the Introduction to MATLAB handout. If you have any questions about the content of this tutorial, don t hesitate to contact me: johannes.bathelt.10@ucl.ac.uk

3 Analysis in the time domain 1.1 Plotting time series For the analysis of time series, it is often a good idea to plot the signal to get an idea of the data. Further, figures are often needed for reports or other publications. Matlab offers many tools that are useful for visualising time varying signals. Task 1.1.1: Load the sample data called Condition1_ERPs. This contains the ERPs for a single channels for all participants in the study. Each row represents the data from one participant and each column is the amplitude of the signal (in µv) at one sampling point. The sampling rate is 250 Hz. The time ranges from 200ms before the stimulus onset to 600ms after stimulus onset. Plot the individual ERP of the first participant in the sample. Adjust the x-axis so that it displays time in ms. Plot the average ERP of the whole sample. Subtract the activity in the first 200ms (baseline) from the individual ERPs before averaging (baseline correction) Fig. 1: ERP of Participant 1 Fig. 2: Grand-average ERP Fig. 3: baseline-corrected ERP Task 1.1.2: Open the file Condition2_ERPs. This file contains a matrix with individual ERPs from the same participants and the same channel, but for a different condition. Fig. 4: both conditions Fig. 5: Standard Error Fig. 6: ERP with SE

4 Plot the average ERP of condition 1 and condition 2 in the same figure. Also, try to add a vertical line that illustrates the stimulus onset at 0ms. This figure shows the difference between the conditions, but we would also like to see the variation of the ERPs to get an idea if the differences between grand-mean waveforms is significant. Calculate the standard error of the grand-mean ERP for both condition. Hint: The standard error is the standard deviation divided by the square root of the number of observations (SE=std/sqrt(n)). Plot both signals with their standard error (positive and negative) in the same figure. Bonus: Use the function jbfill to make the plot look nicer For publication, we often apply filters to make the ERP look smoother in the figures. Filtering is also used during preprocessing to reduce high-frequency noise or slow baseline shifts. Apply a low-pass 6 th order Butterworth filter with a 15Hz cut-off to the grand-mean ERP using the function butter and plot the result. Fig. 7: Filtered ERP 1.2 Time domain measures We often derive measures to characterise a waveform and perform statistical tests to compare them. The most commonly used measures are maxmima and mimima, area measures and mean amplitudes. Often we only want to find these within a specific time window. In the following section, we will use MATLAB to calculate these measure in the example data. Task 1.2.1: The figures that we obtained in the last exercises suggest that the waveform has at least two clearly identifiable peak. Given the variability of the waveform, the conditions might be characterised by different peak amplitudes. Obtain the peak amplitude between 80 and 120ms (P1 window) and the peak amplitude between 130 and 200ms (N170 window) after stimulus onset for both conditions for all participants. What is the average mean amplitude for all participants in both conditions? What is the standard error? NB: Use the baseline corrected data.

5 Perform a two-sample t-test to see if the difference in peak amplitude between the conditions is significant Obtain the latencies of the peak in both conditions for both components Bonus: If you are super-eager or bored, create a bar graph with error bars to visualise the data Task 1.2.2: Peak measures are often misleading, because the amplitude and latency of the peak can be influences by local maxima that are independent of the underlying brain activity. Therefore, area measures are often used to characterise the activity within a given time window. Calculate the mean ERP amplitude between 80 and 120ms and 130 and 200ms Calculate the area under the curve between 80 and 120ms and 130 and 200ms. Hint: a good approximation of area under the curve is the amplitude multiplied by the number of time points, i.e. there is no need to calculate the mathematical integral. 2 Frequency domain analysis In addition to information in the time domain, we are often interested in the frequency content of a signal. We are using something called a Fourier transform to calculate the power of each frequency within a signal. There are functions in Matlab to calculate the Fast Fourier Transform of a signal (fft), but they can be quite difficult to use. Therefore, we use functions of the EEGLAB toolbox. However, note that the same functions can be applied to any type of time series signal whether EEG or not. Task 2.1 Use the function spectopo to calculate the power spectrum (frequency vs power) of the ERPs in both conditions. Also, produce a plot of the mean power spectrum in each condition. Note that the signal has been filtered during the preprocessing with a low-pass cut-off at 30Hz. Plot the spectrum between 0 and 30Hz. Fig. 8: Power spectrum Task 2.2: Extract the frequency power between 8 and 12Hz (adult alpha range). Fig. 9: Zoomed spectrum

6 Solutions Task 1.1.1: srate = 250; time = linspace(-200,1000*(length(condition1_erps)/ srate)-200,length(condition1_erps)); plot(time,condition1_erps(1,:)) xlabel('time [ms]') ylabel('erp amplitude [/mv]') plot(time,mean(condition1_erps)) baseline_means = mean(condition1_erps(:,1:round(0.2*srate)),2); baseline_means = repmat(baseline_means,1,length(condition1_erps)); condition1_erps_blcorrected = condition1_erps - baseline_means; plot(time,mean(condition1_erps_blcorrected)) Task 1.1.2: plot(time,mean(condition1_erps_blcorrected),'b',time,mean(condition2_erps_blcorr ected),'r') legend('condition 1','condition 2') xlabel('time [ms]') ylabel('erp amplitude [/mv]') ylim([-6 6]) yl = get(gca,'ylim'); h = line([0 0],yL,'Color','k'); set(h,'linestyle','--') condition1_se = std(condition1_erps_blcorrected)/ sqrt(length(condition1_erps_blcorrected)); condition2_se = std(condition2_erps_blcorrected)/ sqrt(length(condition2_erps_blcorrected)); figure plot(time,mean(condition1_erps_blcorrected),'b',time,mean(condition2_erps_blcorr ected),'r') hold on plot(time,mean(condition1_erps_blcorrected)+condition1_se,'-- b',time,mean(condition1_erps_blcorrected)-condition1_se,'--b') plot(time,mean(condition2_erps_blcorrected)+condition2_se,'-- r',time,mean(condition2_erps_blcorrected)-condition2_se,'--r') plot(time,mean(condition1_erps_blcorrected),'b',time,mean(condition2_erps_blcorr ected),'r') hold on jbfill(time,mean(condition1_erps_blcorrected) +condition1_se,mean(condition1_erps_blcorrected)-condition1_se,'b','b',0.5); jbfill(time,mean(condition1_erps_blcorrected) +condition1_se,mean(condition1_erps_blcorrected)-condition1_se,'b','b',0.5); condition1_grand_mean = mean(condition1_erps);

7 condition2_grand_mean = mean(condition2_erps); [B,A] = butter(6,2*15/srate,'low'); condition1_grand_mean_filtered = filter(b,a,condition1_grand_mean); condition2_grand_mean_filtered = filter(b,a,condition2_grand_mean); condition1_se = std(condition1_erps)/sqrt(length(condition1_erps)); condition2_se = std(condition2_erps)/sqrt(length(condition2_erps)); condition1_se_filtered = filter(b,a,condition1_se); condition2_se_filtered = filter(b,a,condition2_se); plot(time,condition1_grand_mean_filtered,'b',time,condition2_grand_mean_filtered,'r') hold on jbfill(time,condition1_grand_mean_filtered +condition1_se_filtered,condition1_grand_mean_filteredcondition1_se_filtered,'b','b',0.5); jbfill(time,condition2_grand_mean_filtered +condition2_se_filtered,condition2_grand_mean_filteredcondition2_se_filtered,'r','r',0.5); Task 1.2.1: condition1_p1_peak = max(condition1_erps_blcorrected(:,0.08*srate+0.2*srate: 0.12*srate+0.2*srate),[],2); mean(condition1_p1_peak); ans = condition1_p1_se = std(condition1_p1_peak)/sqrt(length(condition1_p1_peak)); ans = Other solutions work in analogous to the above code. Solutions: Condition 1 Condition 2 Mean SE Mean SE P1 - peak N170 - peak P1 - latency N170 - latency P1 - mean amplitude N170 - mean amplitude P1 - area [µv 2 ] N170 - area [µv 2 ]

8 ttest2(condition1_p1_peak,condition2_p1_peak) pval: ans = 0 [condition1_p1_peak,condition1_p1_latency] = max(condition1_erps_blcorrected(:, 0.08*srate+0.2*srate:0.12*srate+0.2*srate),[],2); condition1_p1_latency = 1000*(condition1_P1_latency/srate ); % peak latencies from stimulus onset in ms Task 1.2.2: condition1_p1_average = mean(condition1_erps_blcorrected(:,0.08*srate+0.2*srate: 0.12*srate+0.2*srate),2); condition1_p1_area = sum(condition1_erps_blcorrected(:,0.08*srate+0.2*srate: 0.12*srate+0.2*srate).*length(condition1_ERPs_blcorrected(:,0.08*srate +0.2*srate:0.12*srate+0.2*srate)),2); The other calculations work similar to this one. You can find the solutions in the table above. Task 2.1 [condition1_spectra,condition1_freqs] = spectopo(condition1_erps,0,srate); [condition2_spectra,condition2_freqs] = spectopo(condition2_erps,0,srate); figure condition1_mean_spectrum = mean(condition1_spectra); condition2_mean_spectrum = mean(condition2_spectra); plot(condition1_freqs,condition1_mean_spectrum,'b',condition2_freqs,condition2_m ean_spectrum,'r') [stopx,stopy] = find(abs(condition1_freqs - 30) == min(abs(condition1_freqs - 30))); plot(condition1_freqs(1:stopx),condition1_mean_spectrum(1:stopx),'b',condition2_ freqs(1:stopx),condition2_mean_spectrum(1:stopx),'r') Task 2.2 [startx,starty] = find(abs(condition1_freqs - 8) == min(abs(condition1_freqs - 8))); [stopx,stopy] = find(abs(condition1_freqs - 12) == min(abs(condition1_freqs - 12))); condition1_alpha_power = sum(condition1_spectra(startx:stopx)); condition2_alpha_power = sum(condition2_spectra(startx:stopx)); condition1_alpha_power = condition2_alpha_power =

Beyond Blind Averaging Analyzing Event-Related Brain Dynamics

Beyond Blind Averaging Analyzing Event-Related Brain Dynamics Beyond Blind Averaging Analyzing Event-Related Brain Dynamics Scott Makeig Swartz Center for Computational Neuroscience Institute for Neural Computation University of California San Diego La Jolla, CA

More information

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering. EIE2106 Signal and System Analysis Lab 2 Fourier series

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering. EIE2106 Signal and System Analysis Lab 2 Fourier series THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering EIE2106 Signal and System Analysis Lab 2 Fourier series 1. Objective The goal of this laboratory exercise is to

More information

Experiment 1 Introduction to MATLAB and Simulink

Experiment 1 Introduction to MATLAB and Simulink Experiment 1 Introduction to MATLAB and Simulink INTRODUCTION MATLAB s Simulink is a powerful modeling tool capable of simulating complex digital communications systems under realistic conditions. It includes

More information

Signal segmentation and waveform characterization. Biosignal processing, S Autumn 2012

Signal segmentation and waveform characterization. Biosignal processing, S Autumn 2012 Signal segmentation and waveform characterization Biosignal processing, 5173S Autumn 01 Short-time analysis of signals Signal statistics may vary in time: nonstationary how to compute signal characterizations?

More information

Signal Processing for Digitizers

Signal Processing for Digitizers Signal Processing for Digitizers Modular digitizers allow accurate, high resolution data acquisition that can be quickly transferred to a host computer. Signal processing functions, applied in the digitizer

More information

Physiological Signal Processing Primer

Physiological Signal Processing Primer Physiological Signal Processing Primer This document is intended to provide the user with some background information on the methods employed in representing bio-potential signals, such as EMG and EEG.

More information

Signals, sampling & filtering

Signals, sampling & filtering Signals, sampling & filtering Scientific Computing Fall, 2018 Paul Gribble 1 Time domain representation of signals 1 2 Frequency domain representation of signals 2 3 Fast Fourier transform (FFT) 2 4 Sampling

More information

EE 791 EEG-5 Measures of EEG Dynamic Properties

EE 791 EEG-5 Measures of EEG Dynamic Properties EE 791 EEG-5 Measures of EEG Dynamic Properties Computer analysis of EEG EEG scientists must be especially wary of mathematics in search of applications after all the number of ways to transform data is

More information

ET 304A Laboratory Tutorial-Circuitmaker For Transient and Frequency Analysis

ET 304A Laboratory Tutorial-Circuitmaker For Transient and Frequency Analysis ET 304A Laboratory Tutorial-Circuitmaker For Transient and Frequency Analysis All circuit simulation packages that use the Pspice engine allow users to do complex analysis that were once impossible to

More information

Changing the sampling rate

Changing the sampling rate Noise Lecture 3 Finally you should be aware of the Nyquist rate when you re designing systems. First of all you must know your system and the limitations, e.g. decreasing sampling rate in the speech transfer

More information

Introduction. Chapter Time-Varying Signals

Introduction. Chapter Time-Varying Signals Chapter 1 1.1 Time-Varying Signals Time-varying signals are commonly observed in the laboratory as well as many other applied settings. Consider, for example, the voltage level that is present at a specific

More information

PSYC696B: Analyzing Neural Time-series Data

PSYC696B: Analyzing Neural Time-series Data PSYC696B: Analyzing Neural Time-series Data Spring, 2014 Tuesdays, 4:00-6:45 p.m. Room 338 Shantz Building Course Resources Online: jallen.faculty.arizona.edu Follow link to Courses Available from: Amazon:

More information

Noise Measurements Using a Teledyne LeCroy Oscilloscope

Noise Measurements Using a Teledyne LeCroy Oscilloscope Noise Measurements Using a Teledyne LeCroy Oscilloscope TECHNICAL BRIEF January 9, 2013 Summary Random noise arises from every electronic component comprising your circuits. The analysis of random electrical

More information

On-Line Students Analog Discovery 2: Arbitrary Waveform Generator (AWG). Two channel oscilloscope

On-Line Students Analog Discovery 2: Arbitrary Waveform Generator (AWG). Two channel oscilloscope EET 150 Introduction to EET Lab Activity 5 Oscilloscope Introduction Required Parts, Software and Equipment Parts Figure 1, Figure 2, Figure 3 Component /Value Quantity Resistor 10 kω, ¼ Watt, 5% Tolerance

More information

Electrical and Telecommunication Engineering Technology NEW YORK CITY COLLEGE OF TECHNOLOGY THE CITY UNIVERSITY OF NEW YORK

Electrical and Telecommunication Engineering Technology NEW YORK CITY COLLEGE OF TECHNOLOGY THE CITY UNIVERSITY OF NEW YORK NEW YORK CITY COLLEGE OF TECHNOLOGY THE CITY UNIVERSITY OF NEW YORK DEPARTMENT: Electrical and Telecommunication Engineering Technology SUBJECT CODE AND TITLE: DESCRIPTION: REQUIRED TCET 4202 Advanced

More information

Introduction to Simulink

Introduction to Simulink EE 460 Introduction to Communication Systems MATLAB Tutorial #3 Introduction to Simulink This tutorial provides an overview of Simulink. It also describes the use of the FFT Scope and the filter design

More information

(Time )Frequency Analysis of EEG Waveforms

(Time )Frequency Analysis of EEG Waveforms (Time )Frequency Analysis of EEG Waveforms Niko Busch Charité University Medicine Berlin; Berlin School of Mind and Brain niko.busch@charite.de niko.busch@charite.de 1 / 23 From ERP waveforms to waves

More information

SYSTEM ONE * DSP SYSTEM ONE DUAL DOMAIN (preliminary)

SYSTEM ONE * DSP SYSTEM ONE DUAL DOMAIN (preliminary) SYSTEM ONE * DSP SYSTEM ONE DUAL DOMAIN (preliminary) Audio Precision's new System One + DSP (Digital Signal Processor) and System One Deal Domain are revolutionary additions to the company's audio testing

More information

Lab 2: Designing a Low Pass Filter

Lab 2: Designing a Low Pass Filter Lab 2: Designing a Low Pass Filter In this lab we will be using a low pass filter to filter the signal from an Infra Red (IR) sensor. The IR sensor will be connected to the Arduino and Matlab will be used

More information

ESE 150 Lab 04: The Discrete Fourier Transform (DFT)

ESE 150 Lab 04: The Discrete Fourier Transform (DFT) LAB 04 In this lab we will do the following: 1. Use Matlab to perform the Fourier Transform on sampled data in the time domain, converting it to the frequency domain 2. Add two sinewaves together of differing

More information

Software Simulation of Pulse Time Modulation Techniques

Software Simulation of Pulse Time Modulation Techniques Case Study Software Simulation of Pulse Time Modulation Techniques Introduction In recent years we have seen a growing interest in application of software simulation in communication engineering. With

More information

Removal of Line Noise Component from EEG Signal

Removal of Line Noise Component from EEG Signal 1 Removal of Line Noise Component from EEG Signal Removal of Line Noise Component from EEG Signal When carrying out time-frequency analysis, if one is interested in analysing frequencies above 30Hz (i.e.

More information

PHYC 500: Introduction to LabView. Exercise 9 (v 1.1) Spectral content of waveforms. M.P. Hasselbeck, University of New Mexico

PHYC 500: Introduction to LabView. Exercise 9 (v 1.1) Spectral content of waveforms. M.P. Hasselbeck, University of New Mexico PHYC 500: Introduction to LabView M.P. Hasselbeck, University of New Mexico Exercise 9 (v 1.1) Spectral content of waveforms This exercise provides additional experience with the Waveform palette, along

More information

Contents Systems of Linear Equations and Determinants

Contents Systems of Linear Equations and Determinants Contents 6. Systems of Linear Equations and Determinants 2 Example 6.9................................. 2 Example 6.10................................ 3 6.5 Determinants................................

More information

ESE 150 Lab 04: The Discrete Fourier Transform (DFT)

ESE 150 Lab 04: The Discrete Fourier Transform (DFT) LAB 04 In this lab we will do the following: 1. Use Matlab to perform the Fourier Transform on sampled data in the time domain, converting it to the frequency domain 2. Add two sinewaves together of differing

More information

Additive Synthesis OBJECTIVES BACKGROUND

Additive Synthesis OBJECTIVES BACKGROUND Additive Synthesis SIGNALS & SYSTEMS IN MUSIC CREATED BY P. MEASE, 2011 OBJECTIVES In this lab, you will construct your very first synthesizer using only pure sinusoids! This will give you firsthand experience

More information

Post-processing data with Matlab

Post-processing data with Matlab Post-processing data with Matlab Best Practice TMR7-31/08/2015 - Valentin Chabaud valentin.chabaud@ntnu.no Cleaning data Filtering data Extracting data s frequency content Introduction A trade-off between

More information

MACCS ERP Laboratory ERP Training

MACCS ERP Laboratory ERP Training MACCS ERP Laboratory ERP Training 2008 Session 1 Set-up and general lab issues 1. General Please keep the lab tidy at all times. Room booking: MACCS has an online booking system https://www.maccs.mq.edu.au/mrbs/

More information

Introduction to Computational Neuroscience

Introduction to Computational Neuroscience Introduction to Computational Neuroscience Lecture 4: Data analysis I Lesson Title 1 Introduction 2 Structure and Function of the NS 3 Windows to the Brain 4 Data analysis 5 Data analysis II 6 Single neuron

More information

Micro-state analysis of EEG

Micro-state analysis of EEG Micro-state analysis of EEG Gilles Pourtois Psychopathology & Affective Neuroscience (PAN) Lab http://www.pan.ugent.be Stewart & Walsh, 2000 A shared opinion on EEG/ERP: excellent temporal resolution (ms

More information

Signals, systems, acoustics and the ear. Week 3. Frequency characterisations of systems & signals

Signals, systems, acoustics and the ear. Week 3. Frequency characterisations of systems & signals Signals, systems, acoustics and the ear Week 3 Frequency characterisations of systems & signals The big idea As long as we know what the system does to sinusoids...... we can predict any output to any

More information

Signal Processing. Naureen Ghani. December 9, 2017

Signal Processing. Naureen Ghani. December 9, 2017 Signal Processing Naureen Ghani December 9, 27 Introduction Signal processing is used to enhance signal components in noisy measurements. It is especially important in analyzing time-series data in neuroscience.

More information

Lab 1B LabVIEW Filter Signal

Lab 1B LabVIEW Filter Signal Lab 1B LabVIEW Filter Signal Due Thursday, September 12, 2013 Submit Responses to Questions (Hardcopy) Equipment: LabVIEW Setup: Open LabVIEW Skills learned: Create a low- pass filter using LabVIEW and

More information

from signals to sources asa-lab turnkey solution for ERP research

from signals to sources asa-lab turnkey solution for ERP research from signals to sources asa-lab turnkey solution for ERP research asa-lab : turnkey solution for ERP research Psychological research on the basis of event-related potentials is a key source of information

More information

Acoustics, signals & systems for audiology. Week 3. Frequency characterisations of systems & signals

Acoustics, signals & systems for audiology. Week 3. Frequency characterisations of systems & signals Acoustics, signals & systems for audiology Week 3 Frequency characterisations of systems & signals The BIG idea: Illustrated 2 Representing systems in terms of what they do to sinusoids: Frequency responses

More information

Hideo Okawara s Mixed Signal Lecture Series. DSP-Based Testing Fundamentals 22 Trend Removal (Part 2)

Hideo Okawara s Mixed Signal Lecture Series. DSP-Based Testing Fundamentals 22 Trend Removal (Part 2) Hideo Okawara s Mixed Signal Lecture Series DSP-Based Testing Fundamentals 22 Trend Removal (Part 2) Verigy Japan February 2010 Preface to the Series ADC and DAC are the most typical mixed signal devices.

More information

EC310 Security Exercise 20

EC310 Security Exercise 20 EC310 Security Exercise 20 Introduction to Sinusoidal Signals This lab demonstrates a sinusoidal signal as described in class. In this lab you will identify the different waveform parameters for a pure

More information

BIOMEDICAL SIGNAL PROCESSING (BMSP) TOOLS

BIOMEDICAL SIGNAL PROCESSING (BMSP) TOOLS BIOMEDICAL SIGNAL PROCESSING (BMSP) TOOLS A Guide that will help you to perform various BMSP functions, for a course in Digital Signal Processing. Pre requisite: Basic knowledge of BMSP tools : Introduction

More information

Voltage Current and Resistance II

Voltage Current and Resistance II Voltage Current and Resistance II Equipment: Capstone with 850 interface, analog DC voltmeter, analog DC ammeter, voltage sensor, RLC circuit board, 8 male to male banana leads 1 Purpose This is a continuation

More information

Log Booklet for EE2 Experiments

Log Booklet for EE2 Experiments Log Booklet for EE2 Experiments Vasil Zlatanov DFT experiment Exercise 1 Code for sinegen.m function y = sinegen(fsamp, fsig, nsamp) tsamp = 1/fsamp; t = 0 : tsamp : (nsamp-1)*tsamp; y = sin(2*pi*fsig*t);

More information

Diodes. Sections

Diodes. Sections iodes Sections 3.3.1 3.3.8 1 Modeling iode Characteristics Exponential model nonlinearity makes circuit analysis difficult. Two common approaches are graphical analysis and iterative analysis For simple

More information

Matlab for FMRI Module 2: BOLD signals, Matlab and the general linear model Instructor: Luis Hernandez-Garcia

Matlab for FMRI Module 2: BOLD signals, Matlab and the general linear model Instructor: Luis Hernandez-Garcia Matlab for FMRI Module 2: BOLD signals, Matlab and the general linear model Instructor: Luis Hernandez-Garcia The goal for this tutorial is to see how the statistics that we will be discussing in class

More information

Supplementary Material

Supplementary Material Supplementary Material Orthogonal representation of sound dimensions in the primate midbrain Simon Baumann, Timothy D. Griffiths, Li Sun, Christopher I. Petkov, Alex Thiele & Adrian Rees Methods: Animals

More information

Lab 8. Signal Analysis Using Matlab Simulink

Lab 8. Signal Analysis Using Matlab Simulink E E 2 7 5 Lab June 30, 2006 Lab 8. Signal Analysis Using Matlab Simulink Introduction The Matlab Simulink software allows you to model digital signals, examine power spectra of digital signals, represent

More information

Frequency Domain Representation of Signals

Frequency Domain Representation of Signals Frequency Domain Representation of Signals The Discrete Fourier Transform (DFT) of a sampled time domain waveform x n x 0, x 1,..., x 1 is a set of Fourier Coefficients whose samples are 1 n0 X k X0, X

More information

Experiment No. 6. Audio Tone Control Amplifier

Experiment No. 6. Audio Tone Control Amplifier Experiment No. 6. Audio Tone Control Amplifier By: Prof. Gabriel M. Rebeiz The University of Michigan EECS Dept. Ann Arbor, Michigan Goal: The goal of Experiment #6 is to build and test a tone control

More information

Efficacy of Wavelet Transform Techniques for. Denoising Polarized Target NMR Signals

Efficacy of Wavelet Transform Techniques for. Denoising Polarized Target NMR Signals Efficacy of Wavelet Transform Techniques for Denoising Polarized Target NMR Signals James Maxwell May 2, 24 Abstract Under the guidance of Dr. Donal Day, mathematical techniques known as Wavelet Transforms

More information

BRAIN COMPUTER INTERFACE (BCI) RESEARCH CENTER AT SRM UNIVERSITY

BRAIN COMPUTER INTERFACE (BCI) RESEARCH CENTER AT SRM UNIVERSITY BRAIN COMPUTER INTERFACE (BCI) RESEARCH CENTER AT SRM UNIVERSITY INTRODUCTION TO BCI Brain Computer Interfacing has been one of the growing fields of research and development in recent years. An Electroencephalograph

More information

Time-Frequency analysis of biophysical time series

Time-Frequency analysis of biophysical time series Time-Frequency analysis of biophysical time series Sept 9 th 2010, NCTU, Taiwan Arnaud Delorme Frequency analysis synchronicity of cell excitation determines amplitude and rhythm of the EEG signal 30-60

More information

Data Analysis in MATLAB Lab 1: The speed limit of the nervous system (comparative conduction velocity)

Data Analysis in MATLAB Lab 1: The speed limit of the nervous system (comparative conduction velocity) Data Analysis in MATLAB Lab 1: The speed limit of the nervous system (comparative conduction velocity) Importing Data into MATLAB Change your Current Folder to the folder where your data is located. Import

More information

Time Series/Data Processing and Analysis (MATH 587/GEOP 505)

Time Series/Data Processing and Analysis (MATH 587/GEOP 505) Time Series/Data Processing and Analysis (MATH 587/GEOP 55) Rick Aster and Brian Borchers October 7, 28 Plotting Spectra Using the FFT Plotting the spectrum of a signal from its FFT is a very common activity.

More information

L A B 3 : G E N E R A T I N G S I N U S O I D S

L A B 3 : G E N E R A T I N G S I N U S O I D S L A B 3 : G E N E R A T I N G S I N U S O I D S NAME: DATE OF EXPERIMENT: DATE REPORT SUBMITTED: 1/7 1 THEORY DIGITAL SIGNAL PROCESSING LABORATORY 1.1 GENERATION OF DISCRETE TIME SINUSOIDAL SIGNALS IN

More information

ECE411 - Laboratory Exercise #1

ECE411 - Laboratory Exercise #1 ECE411 - Laboratory Exercise #1 Introduction to Matlab/Simulink This laboratory exercise is intended to provide a tutorial introduction to Matlab/Simulink. Simulink is a Matlab toolbox for analysis/simulation

More information

Electrical & Computer Engineering Technology

Electrical & Computer Engineering Technology Electrical & Computer Engineering Technology EET 419C Digital Signal Processing Laboratory Experiments by Masood Ejaz Experiment # 1 Quantization of Analog Signals and Calculation of Quantized noise Objective:

More information

LAB 2 SPECTRUM ANALYSIS OF PERIODIC SIGNALS

LAB 2 SPECTRUM ANALYSIS OF PERIODIC SIGNALS Eastern Mediterranean University Faculty of Engineering Department of Electrical and Electronic Engineering EENG 360 Communication System I Laboratory LAB 2 SPECTRUM ANALYSIS OF PERIODIC SIGNALS General

More information

Computational Perception /785

Computational Perception /785 Computational Perception 15-485/785 Assignment 1 Sound Localization due: Thursday, Jan. 31 Introduction This assignment focuses on sound localization. You will develop Matlab programs that synthesize sounds

More information

Lab #2 First Order RC Circuits Week of 27 January 2015

Lab #2 First Order RC Circuits Week of 27 January 2015 ECE214: Electrical Circuits Laboratory Lab #2 First Order RC Circuits Week of 27 January 2015 1 Introduction In this lab you will investigate the magnitude and phase shift that occurs in an RC circuit

More information

Physiological signal(bio-signals) Method, Application, Proposal

Physiological signal(bio-signals) Method, Application, Proposal Physiological signal(bio-signals) Method, Application, Proposal Bio-Signals 1. Electrical signals ECG,EMG,EEG etc 2. Non-electrical signals Breathing, ph, movement etc General Procedure of bio-signal recognition

More information

CHAPTER 4 IMPLEMENTATION OF ADALINE IN MATLAB

CHAPTER 4 IMPLEMENTATION OF ADALINE IN MATLAB 52 CHAPTER 4 IMPLEMENTATION OF ADALINE IN MATLAB 4.1 INTRODUCTION The ADALINE is implemented in MATLAB environment running on a PC. One hundred data samples are acquired from a single cycle of load current

More information

Chapter 5. Signal Analysis. 5.1 Denoising fiber optic sensor signal

Chapter 5. Signal Analysis. 5.1 Denoising fiber optic sensor signal Chapter 5 Signal Analysis 5.1 Denoising fiber optic sensor signal We first perform wavelet-based denoising on fiber optic sensor signals. Examine the fiber optic signal data (see Appendix B). Across all

More information

Week I AUDL Signals & Systems for Speech & Hearing. Sound is a SIGNAL. You may find this course demanding! How to get through it: What is sound?

Week I AUDL Signals & Systems for Speech & Hearing. Sound is a SIGNAL. You may find this course demanding! How to get through it: What is sound? AUDL Signals & Systems for Speech & Hearing Week I You may find this course demanding! How to get through it: Consult the Web site: www.phon.ucl.ac.uk/courses/spsci/sigsys Essential to do the reading and

More information

DFT: Discrete Fourier Transform & Linear Signal Processing

DFT: Discrete Fourier Transform & Linear Signal Processing DFT: Discrete Fourier Transform & Linear Signal Processing 2 nd Year Electronics Lab IMPERIAL COLLEGE LONDON Table of Contents Equipment... 2 Aims... 2 Objectives... 2 Recommended Textbooks... 3 Recommended

More information

Outline. Introduction to Biosignal Processing. Overview of Signals. Measurement Systems. -Filtering -Acquisition Systems (Quantisation and Sampling)

Outline. Introduction to Biosignal Processing. Overview of Signals. Measurement Systems. -Filtering -Acquisition Systems (Quantisation and Sampling) Outline Overview of Signals Measurement Systems -Filtering -Acquisition Systems (Quantisation and Sampling) Digital Filtering Design Frequency Domain Characterisations - Fourier Analysis - Power Spectral

More information

INDEX TO SERIES OF TUTORIALS TO WAVELET TRANSFORM BY ROBI POLIKAR THE ENGINEER'S ULTIMATE GUIDE TO WAVELET ANALYSIS ROBI POLIKAR

INDEX TO SERIES OF TUTORIALS TO WAVELET TRANSFORM BY ROBI POLIKAR THE ENGINEER'S ULTIMATE GUIDE TO WAVELET ANALYSIS ROBI POLIKAR INDEX TO SERIES OF TUTORIALS TO WAVELET TRANSFORM BY ROBI POLIKAR THE ENGINEER'S ULTIMATE GUIDE TO WAVELET ANALYSIS THE WAVELET TUTORIAL by ROBI POLIKAR Also visit Rowan s Signal Processing and Pattern

More information

ELT COMMUNICATION THEORY

ELT COMMUNICATION THEORY ELT 41307 COMMUNICATION THEORY Matlab Exercise #1 Sampling, Fourier transform, Spectral illustrations, and Linear filtering 1 SAMPLING The modeled signals and systems in this course are mostly analog (continuous

More information

Experiment 2: Electronic Enhancement of S/N and Boxcar Filtering

Experiment 2: Electronic Enhancement of S/N and Boxcar Filtering Experiment 2: Electronic Enhancement of S/N and Boxcar Filtering Synopsis: A simple waveform generator will apply a triangular voltage ramp through an R/C circuit. A storage digital oscilloscope, or an

More information

UNIVERSITY OF UTAH ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT

UNIVERSITY OF UTAH ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT UNIVERSITY OF UTAH ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT ECE1020 COMPUTING ASSIGNMENT 3 N. E. COTTER MATLAB ARRAYS: RECEIVED SIGNALS PLUS NOISE READING Matlab Student Version: learning Matlab

More information

Neurophysiology. The action potential. Why should we care? AP is the elemental until of nervous system communication

Neurophysiology. The action potential. Why should we care? AP is the elemental until of nervous system communication Neurophysiology Why should we care? AP is the elemental until of nervous system communication The action potential Time course, propagation velocity, and patterns all constrain hypotheses on how the brain

More information

On-Line Students Analog Discovery 2: Arbitrary Waveform Generator (AWG). Two channel oscilloscope

On-Line Students Analog Discovery 2: Arbitrary Waveform Generator (AWG). Two channel oscilloscope EET 150 Introduction to EET Lab Activity 8 Function Generator Introduction Required Parts, Software and Equipment Parts Figure 1 Component /Value Quantity Resistor 10 kω, ¼ Watt, 5% Tolerance 1 Resistor

More information

LabVIEW Basics Peter Avitabile,Jeffrey Hodgkins Mechanical Engineering Department University of Massachusetts Lowell

LabVIEW Basics Peter Avitabile,Jeffrey Hodgkins Mechanical Engineering Department University of Massachusetts Lowell LabVIEW Basics Peter Avitabile,Jeffrey Hodgkins Mechanical Engineering Department University of Massachusetts Lowell 1 Dr. Peter Avitabile LabVIEW LabVIEW is a data acquisition software package commonly

More information

Real Analog - Circuits 1 Chapter 11: Lab Projects

Real Analog - Circuits 1 Chapter 11: Lab Projects Real Analog - Circuits 1 Chapter 11: Lab Projects 11.2.1: Signals with Multiple Frequency Components Overview: In this lab project, we will calculate the magnitude response of an electrical circuit and

More information

SIGNALS AND SYSTEMS LABORATORY 3: Construction of Signals in MATLAB

SIGNALS AND SYSTEMS LABORATORY 3: Construction of Signals in MATLAB SIGNALS AND SYSTEMS LABORATORY 3: Construction of Signals in MATLAB INTRODUCTION Signals are functions of time, denoted x(t). For simulation, with computers and digital signal processing hardware, one

More information

APPENDIX T: Off Site Ambient Tests

APPENDIX T: Off Site Ambient Tests Appendix T1 APPENDIX T: Off Site Ambient Tests End of Blowholes road Substation access Surf Club East end of Blowholes Road Appendix T2 West end of Blowholes Road Appendix T3 West end of Blowholes Rd west

More information

Question 1 Draw a block diagram to illustrate how the data was acquired. Be sure to include important parameter values

Question 1 Draw a block diagram to illustrate how the data was acquired. Be sure to include important parameter values Data acquisition Question 1 Draw a block diagram to illustrate how the data was acquired. Be sure to include important parameter values The block diagram illustrating how the signal was acquired is shown

More information

Week 1. Signals & Systems for Speech & Hearing. Sound is a SIGNAL 3. You may find this course demanding! How to get through it:

Week 1. Signals & Systems for Speech & Hearing. Sound is a SIGNAL 3. You may find this course demanding! How to get through it: Signals & Systems for Speech & Hearing Week You may find this course demanding! How to get through it: Consult the Web site: www.phon.ucl.ac.uk/courses/spsci/sigsys (also accessible through Moodle) Essential

More information

What the LSA1000 Does and How

What the LSA1000 Does and How 2 About the LSA1000 What the LSA1000 Does and How The LSA1000 is an ideal instrument for capturing, digitizing and analyzing high-speed electronic signals. Moreover, it has been optimized for system-integration

More information

Introduction. A Simple Example. 3. fo = 4; %frequency of the sine wave. 4. Fs = 100; %sampling rate. 5. Ts = 1/Fs; %sampling time interval

Introduction. A Simple Example. 3. fo = 4; %frequency of the sine wave. 4. Fs = 100; %sampling rate. 5. Ts = 1/Fs; %sampling time interval Introduction In this tutorial, we will discuss how to use the fft (Fast Fourier Transform) command within MATLAB. The fft command is in itself pretty simple, but takes a little bit of getting used to in

More information

IMPLEMENTATION OF REAL TIME BRAINWAVE VISUALISATION AND CHARACTERISATION

IMPLEMENTATION OF REAL TIME BRAINWAVE VISUALISATION AND CHARACTERISATION Journal of Engineering Science and Technology Special Issue on SOMCHE 2014 & RSCE 2014 Conference, January (2015) 50-59 School of Engineering, Taylor s University IMPLEMENTATION OF REAL TIME BRAINWAVE

More information

Geometry Activity. Then enter the following numbers in L 1 and L 2 respectively. L 1 L

Geometry Activity. Then enter the following numbers in L 1 and L 2 respectively. L 1 L Geometry Activity Introduction: In geometry we can reflect, rotate, translate, and dilate a figure. In this activity lists and statistical plots on the TI-83 Plus Silver Edition will be used to illustrate

More information

SECTION I - CHAPTER 2 DIGITAL IMAGING PROCESSING CONCEPTS

SECTION I - CHAPTER 2 DIGITAL IMAGING PROCESSING CONCEPTS RADT 3463 - COMPUTERIZED IMAGING Section I: Chapter 2 RADT 3463 Computerized Imaging 1 SECTION I - CHAPTER 2 DIGITAL IMAGING PROCESSING CONCEPTS RADT 3463 COMPUTERIZED IMAGING Section I: Chapter 2 RADT

More information

EXPERIMENT 4 INTRODUCTION TO AMPLITUDE MODULATION SUBMITTED BY

EXPERIMENT 4 INTRODUCTION TO AMPLITUDE MODULATION SUBMITTED BY EXPERIMENT 4 INTRODUCTION TO AMPLITUDE MODULATION SUBMITTED BY NAME:. STUDENT ID:.. ROOM: INTRODUCTION TO AMPLITUDE MODULATION Purpose: The objectives of this laboratory are:. To introduce the spectrum

More information

Discrete Fourier Transform (DFT)

Discrete Fourier Transform (DFT) Amplitude Amplitude Discrete Fourier Transform (DFT) DFT transforms the time domain signal samples to the frequency domain components. DFT Signal Spectrum Time Frequency DFT is often used to do frequency

More information

Fourier Signal Analysis

Fourier Signal Analysis Part 1B Experimental Engineering Integrated Coursework Location: Baker Building South Wing Mechanics Lab Experiment A4 Signal Processing Fourier Signal Analysis Please bring the lab sheet from 1A experiment

More information

ENSC327 Communication Systems Fall 2011 Assignment #1 Due Wednesday, Sept. 28, 4:00 pm

ENSC327 Communication Systems Fall 2011 Assignment #1 Due Wednesday, Sept. 28, 4:00 pm ENSC327 Communication Systems Fall 2011 Assignment #1 Due Wednesday, Sept. 28, 4:00 pm All problem numbers below refer to those in Haykin & Moher s book. 1. (FT) Problem 2.20. 2. (Convolution) Problem

More information

THE SINUSOIDAL WAVEFORM

THE SINUSOIDAL WAVEFORM Chapter 11 THE SINUSOIDAL WAVEFORM The sinusoidal waveform or sine wave is the fundamental type of alternating current (ac) and alternating voltage. It is also referred to as a sinusoidal wave or, simply,

More information

Reference Sources. Prelab. Proakis chapter 7.4.1, equations to as attached

Reference Sources. Prelab. Proakis chapter 7.4.1, equations to as attached Purpose The purpose of the lab is to demonstrate the signal analysis capabilities of Matlab. The oscilloscope will be used as an A/D converter to capture several signals we have examined in previous labs.

More information

Class #16: Experiment Matlab and Data Analysis

Class #16: Experiment Matlab and Data Analysis Class #16: Experiment Matlab and Data Analysis Purpose: The objective of this experiment is to add to our Matlab skill set so that data can be easily plotted and analyzed with simple tools. Background:

More information

Lecture 3 Complex Exponential Signals

Lecture 3 Complex Exponential Signals Lecture 3 Complex Exponential Signals Fundamentals of Digital Signal Processing Spring, 2012 Wei-Ta Chu 2012/3/1 1 Review of Complex Numbers Using Euler s famous formula for the complex exponential The

More information

ELEC3104: Digital Signal Processing Session 1, 2013

ELEC3104: Digital Signal Processing Session 1, 2013 ELEC3104: Digital Signal Processing Session 1, 2013 The University of New South Wales School of Electrical Engineering and Telecommunications LABORATORY 1: INTRODUCTION TO TIMS AND MATLAB INTRODUCTION

More information

Lab Assignment 1 Spectrum Analyzers

Lab Assignment 1 Spectrum Analyzers 1 Objectives THE UNIVERSITY OF BRITISH COLUMBIA Department of Electrical and Computer Engineering ELEC 391 Electrical Engineering Design Studio II Lab Assignment 1 Spectrum Analyzers This lab consists

More information

Princeton ELE 201, Spring 2014 Laboratory No. 2 Shazam

Princeton ELE 201, Spring 2014 Laboratory No. 2 Shazam Princeton ELE 201, Spring 2014 Laboratory No. 2 Shazam 1 Background In this lab we will begin to code a Shazam-like program to identify a short clip of music using a database of songs. The basic procedure

More information

Gain From Using One of Process Control's Emerging Tools: Power Spectrum

Gain From Using One of Process Control's Emerging Tools: Power Spectrum Gain From Using One of Process Control's Emerging Tools: Power Spectrum By Michel Ruel (TOP Control) and John Gerry (ExperTune Inc.) Process plants are starting to get big benefits from a widely available

More information

F=MA. W=F d = -F FACILITATOR - APPENDICES

F=MA. W=F d = -F FACILITATOR - APPENDICES W=F d F=MA F 12 = -F 21 FACILITATOR - APPENDICES APPENDIX A: CALCULATE IT (OPTIONAL ACTIVITY) Time required: 20 minutes If you have additional time or are interested in building quantitative skills, consider

More information

Design IIR Filters Using Cascaded Biquads

Design IIR Filters Using Cascaded Biquads Design IIR Filters Using Cascaded Biquads This article shows how to implement a Butterworth IIR lowpass filter as a cascade of second-order IIR filters, or biquads. We ll derive how to calculate the coefficients

More information

Page 1/10 Digilent Analog Discovery (DAD) Tutorial 6-Aug-15. Figure 2: DAD pin configuration

Page 1/10 Digilent Analog Discovery (DAD) Tutorial 6-Aug-15. Figure 2: DAD pin configuration Page 1/10 Digilent Analog Discovery (DAD) Tutorial 6-Aug-15 INTRODUCTION The Diligent Analog Discovery (DAD) allows you to design and test both analog and digital circuits. It can produce, measure and

More information

Fourier Theory & Practice, Part I: Theory (HP Product Note )

Fourier Theory & Practice, Part I: Theory (HP Product Note ) Fourier Theory & Practice, Part I: Theory (HP Product Note 54600-4) By: Robert Witte Hewlett-Packard Co. Introduction: This product note provides a brief review of Fourier theory, especially the unique

More information

Laboratory Experiment #1 Introduction to Spectral Analysis

Laboratory Experiment #1 Introduction to Spectral Analysis J.B.Francis College of Engineering Mechanical Engineering Department 22-403 Laboratory Experiment #1 Introduction to Spectral Analysis Introduction The quantification of electrical energy can be accomplished

More information

a. Use (at least) window lengths of 256, 1024, and 4096 samples to compute the average spectrum using a window overlap of 0.5.

a. Use (at least) window lengths of 256, 1024, and 4096 samples to compute the average spectrum using a window overlap of 0.5. 1. Download the file signal.mat from the website. This is continuous 10 second recording of a signal sampled at 1 khz. Assume the noise is ergodic in time and that it is white. I used the MATLAB Signal

More information

SAW Filter Modelling in Matlab for GNSS Receivers

SAW Filter Modelling in Matlab for GNSS Receivers International Journal of Electrical and Computer Engineering (IJECE) Vol. 3, No. 5, October 2013, pp. 660~667 ISSN: 2088-8708 660 SAW Filter Modelling in Matlab for GNSS Receivers Syed Haider Abbas, Hussnain

More information

Cross-Frequency Coupling. Naureen Ghani. April 28, 2018

Cross-Frequency Coupling. Naureen Ghani. April 28, 2018 Cross-Frequency Coupling Naureen Ghani April 28, 2018 Introduction The interplay of excitation and inhibition is a fundamental feature of cortical information processing. The opposing actions of pyramidal

More information