-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathexample2.m
44 lines (37 loc) · 973 Bytes
/
example2.m
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
38
39
40
41
42
43
44
function example2
% EXAMPLE2 plots DMD and OMD growth rate errors and the percentage
% difference between DMD and OMD using data from Wynn et al. (2012)
%
% Plots data corresponding to the example of section 4 in the paper:
%
% Wynn, Pearson, Ganapathisubramani & Goulart, 'Optimal mode
% decomposition for unsteady and turbulent flows', June 2012.
% Submitted to Journal of Fluid Mechanics. Available at
% http:\\control.ee.ethz.ch\~goulartpa\
%
% An equivalent data set can be created by running example1.m with the
% following settings:
%
% spatial wavenumber and temporal growth rate
% k = 1;
% g = 1;
%
% flow sampling settings
% Nt = 50;
% Nx = 200;
% dt = 2*pi/100;
% dx = 2*pi/100;
%
% temporal frequency
% w = 0.6:0.01:1.6;
%
% noise covariance
% s = 0.05:0.025:1;
%
% number of samples at each noise level
% N = 1000;
% load data
load jfm_data.mat
% plot results
make_plots(E_mean,G_mean,PI_mean,w,s,g);
end