matlab - retrieve data at specific loop values -
i wondering how achieve following: have vector (scalar) called timesteps. timesteps increments according length of vector (nbins_max) set @ fixed length (but may change occasionally). declare 5 full system rotations use:
timesteps = 5*nbins_max;
i retrieve data each rotation of system. in pseduo-code i'm looking achieve following:
where timesteps = each multiple of nbins_max retrieve data end
i set manually @ each number of timesteps i'm interested in, however, due number of rollers in of systems prove tedious , potentially error prone! also, timesteps varies considerably in it's range, 1*nbins_max, 1000*nbins_max, perhaps more this!
any pointers or general appreciated! reading
richard
the modulus 0 @ each multiple of nbins_max:
where mod(timesteps, nbins_max)==0 retrieve data end
hope helps?
Comments
Post a Comment