https://github.com/Data2Dynamics/d2d
Tip revision: d72d4c223fb8adc0e3e44a1d3d1eafce18b995ae authored by Andreas Raue on 06 March 2015, 00:17:07 UTC
Increase C version code, after Joep's submits today to prevent compatibility problems
Increase C version code, after Joep's submits today to prevent compatibility problems
Tip revision: d72d4c2
arLogFitting.m
% toggle log-fitting option
%
% arLogFitting(logfitting)
function arLogFitting(logfitting)
global ar
for jm = 1:length(ar.model)
if(isfield(ar.model(jm), 'data'))
for jd = 1:length(ar.model(jm).data)
if(~logfitting)
ar.model(jm).data(jd).yExp(:,ar.model(jm).data(jd).logfitting==1) = ...
10.^ar.model(jm).data(jd).yExp(:,ar.model(jm).data(jd).logfitting==1);
else
ar.model(jm).data(jd).yExp(:,ar.model(jm).data(jd).logfitting==0) = ...
log10(ar.model(jm).data(jd).yExp(:,ar.model(jm).data(jd).logfitting==0));
end
ar.model(jm).data(jd).logfitting(:) = logfitting;
end
end
end