]As you can see in the photo, I have the values for A1..A7 and B1..B7.

Then, I plot a graph for the upper side A1..A7 and fit an exponential to it in Matlab. The eq is y=22.297e^-5.323x

After, I plot the graph for the lower side B1..B7 and fit an exponential to it. The eq is y=40.949e^-5.002x

The problem is that it is needed the same value for e's exponent. So it is needed that for A and B I get maybe something like y=22.297 e^-5.4x for both curves.

To do that I see that I can move the OX axis down/up and thus the y values for the A(x,y) and B(x,y) points change, making the equations for the curves change. But I want some kind of algorithm that can do this automatically until the exponents for e for both curves become as close as possible.

How can I make Matlab

1. fit the exponential curve for each graph (one for the As and one for the Bs)

2. check the values for e's exponent for the curves that correspond to the two graphs

3. find a value "d" to ad/subtract from the y values of the A(x, y) and B(x, y) so that now it has A(x, y+d) b(x, y+d)

4. do 1 and 2 again and see if the values for e's exponent for both curves have become equal or at least as close as possible.

5. show that value "d".

Thank you!

Then, I plot a graph for the upper side A1..A7 and fit an exponential to it in Matlab. The eq is y=22.297e^-5.323x

After, I plot the graph for the lower side B1..B7 and fit an exponential to it. The eq is y=40.949e^-5.002x

The problem is that it is needed the same value for e's exponent. So it is needed that for A and B I get maybe something like y=22.297 e^-5.4x for both curves.

To do that I see that I can move the OX axis down/up and thus the y values for the A(x,y) and B(x,y) points change, making the equations for the curves change. But I want some kind of algorithm that can do this automatically until the exponents for e for both curves become as close as possible.

How can I make Matlab

1. fit the exponential curve for each graph (one for the As and one for the Bs)

2. check the values for e's exponent for the curves that correspond to the two graphs

3. find a value "d" to ad/subtract from the y values of the A(x, y) and B(x, y) so that now it has A(x, y+d) b(x, y+d)

4. do 1 and 2 again and see if the values for e's exponent for both curves have become equal or at least as close as possible.

5. show that value "d".

Thank you!

Last edited: