Colleagues,
I have already solved my problem and a much simplified example is shown below. I am asking are there ways for more efficient computations of ‘Model(time)’ when it comes to huge arrays and much more complex model functions.
Heinz
// Measurement: time, value
M=[ 1. 0.09
5. 0.49
7. 0.6
8. 0.68
10. 0.71
17. 0.89
20. 0.91];
time=M(:,1); value=M(:,2);
// Model
t=1:50; Model=1-exp(-t/8);
// Difference
Difference=value-Model(time)‘;
plot(time,value,‘ro’); xgrid;
plot(t,Model);
plot(time,abs(Difference),’+');
legend(‘Measurement’,‘Model’,‘abs(Difference)’,4);
xlabel(‘time’);ylabel(‘value’);
I am having difficulties to post this question…
Heinz
I wondered if the expression “Model(time)” works efficiently.
Heinz
M=[ 1. 0.09
5. 0.49
7. 0.6
8. 0.68
10. 0.71
17. 0.89
20. 0.91];
time=M(:,1); value=M(:,2);
// Model
t=1:50; Model=1-exp(-t/8);
// Difference
Difference=value-Model(time)‘;