-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun.m
More file actions
37 lines (35 loc) · 1.43 KB
/
run.m
File metadata and controls
37 lines (35 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
clear all
close all
clc
%%
% Author: Yun Zhao (Monash University, Australia)
% Email: yun.zhao@monash.edu
% -------------------------------------------------------------------------
% Here we demonstrate dynamic stability analysis, and dynamic chaos
% analysis of the epileptogenic zones during seizures.
%
% We provide two 16-channel iEEG recordings in which seizures started at 60
% second and ended 10 seconds before the end of recordings. A multi-region
% model consisting of 16 neural mass models is fitted to the data.
% Parameters of the model are estimated and are used in stability and chaos
% analyzes.
%
% Showcase 1: Dynamic cortical stability
%
% This showcase calculates and shows the time-evolving Jacobi's eigenvalue
% spectrum of the model which indicates dynamic stability of the
% epileptogenic regions.
%
% Showcase 2: Dynamic cortical chaos
%
% This showcase calculates and shows the time-evolving Lyapunov spectrum of
% the model which indicates the dynamic chaos of the epileptogenic regions.
% -------------------------------------------------------------------------
%
% Please run 'parameter estimation' before running 'stability analysis' or
% 'chaos analysis'.
%% Run showcase to show dynamic cortical stability
data_file = 3; % choose from two iEEG files 1, 2 or 3
%% Need to run 'parameter estimation' first then choose from 'stability analysis' and 'chaos analysis'
tasks = ['parameter estimation'];
main(data_file, tasks)