https://github.com/Data2Dynamics/d2d
Raw File
Tip revision: 4c697ee160f4d91719a65cfcfe3e3b50395b6656 authored by Helge Hass on 29 July 2015, 07:45:33 UTC
new C code version
Tip revision: 4c697ee
arRecompile.m
function arRecompile(varargin)

global ar

ms = {ar.model.name};
ds = cell(size(ms));
for m=1:length(ar.model)
    if(isfield(ar.model(m).data,'name'))
        ds{m} = {ar.model(m).data.name};
        [uni,ia,ib]= unique(regexprep(ds{m},'_nExpID(\d)+',''));
        ds{m} = uni(ib);  % replace zurueck
        ds{m} = ds{m}(sort(ia)); % nur die unique, aber in alter reihenfolge
    else
        ds{m} = [];
    end
end

arInit
for m=1:length(ms)
    arLoadModel(ms{m});
end

for m=1:length(ds)
    for d=1:length(ds{m})
%         arLoadData_withoutNormalization(ds{m}{d}, 1,[],[],[]);
        arLoadData(ds{m}{d},m,'xls', 1);
    end
end

arCompileAll(varargin{:})
arSave('Recompile');

back to top