Changeset 1096 for trunk/src/series/sliding_average.m
- Timestamp:
- Apr 2, 2021, 3:57:01 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/sliding_average.m
r1095 r1096 185 185 186 186 %% initialisation 187 T=24.4; %main wave period 188 t0=3; % time for motion start (torus at its maximum x) 187 char_index=regexp(SubDir{1},'waves_L1_'); 188 switch(SubDir{1}(char_index+9)) 189 case '1' 190 amplitude=2.5 %oscillation amplitude 191 T=24.46; 192 t0=3 ;% dt=0.5 s, torus at its max x at the beginning of motion, i0=7 193 case '2' 194 amplitude=5 %oscillation amplitude 195 T=24.47; 196 t0=8.5; % dt=1/3 s -> image index of starting motion = 26, % torus at its max x at the beginning of motion 197 case '3' 198 amplitude=10 %oscillation amplitude 199 T=24.45; 200 t0=6.5-T/2;% dt=0.25, torus at its minimum x at the beginning of motion 201 case '4' 202 amplitude=15 %oscillation amplitude 203 T=24.48; 204 t0=3.4; %dt=0.2 -> i0=18 image index of starting motion, % torus at its max x at the beginning of motion 205 end 189 206 NbPeriod=2; %number of periods for the sliding average 190 207 omega=2*pi/T; 191 amplitude=2.5; %oscillation amplitude192 208 Lscale=15;%diameter of the torus, length scale for normalisation 193 209 Uscale=amplitude*omega; … … 214 230 NpTime=round(NbPeriod*T/dt+1); 215 231 216 OutputPath=fullfile(Param.OutputPath, Param.Experiment,Param.Device);232 OutputPath=fullfile(Param.OutputPath,num2str(Param.Experiment),num2str(Param.Device)); 217 233 RootFileOut=RootFile{1}; 218 234 NomTypeOut='_1';
Note: See TracChangeset
for help on using the changeset viewer.