I have a file having a sample size of 491520. I want to save every alternative 102 samples separately. For example – I want 1 to 102 but don't want 103 to 204 and so on.
Best Answer
Like this?
% Sample data (size of 491520)
data = rand(491520,1);
idx = repelem([true;false],102);
idx = repmat(idx,ceil(491520/204),1);
idx = idx(1:size(data,1)); % Since 491520 can't be divided by 204
Fast restart will let you run simulations repeatedly without recompiling, as long as the variables you're changing do not affect the model in any way. For example, you can change tunable parameters, inputs, etc. but not structural things such as sample times, data types, dimensions, etc.
To do this from the command line, you can just do:
Best Answer