Ignore:
Timestamp:
Apr 2, 2021, 3:57:01 PM (3 years ago)
Author:
sommeria
Message:

bugs fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/sliding_average.m

    r1095 r1096  
    185185
    186186%% initialisation
    187 T=24.4; %main wave period
    188 t0=3; % time for motion start (torus at its maximum x)
     187char_index=regexp(SubDir{1},'waves_L1_');
     188switch(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
     205end
    189206NbPeriod=2; %number of periods for the sliding average
    190207omega=2*pi/T;
    191 amplitude=2.5; %oscillation amplitude
    192208Lscale=15;%diameter of the torus, length scale for normalisation
    193209Uscale=amplitude*omega;
     
    214230NpTime=round(NbPeriod*T/dt+1);
    215231
    216 OutputPath=fullfile(Param.OutputPath,Param.Experiment,Param.Device);
     232OutputPath=fullfile(Param.OutputPath,num2str(Param.Experiment),num2str(Param.Device));
    217233RootFileOut=RootFile{1};
    218234NomTypeOut='_1';
Note: See TracChangeset for help on using the changeset viewer.