[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fri, 9 Aug 2019 21:31:04 -0500 (CDT)
I am new with octave.
I have a data set (x,y) and I have a theoretical function that depend on the
x value. In other words, for example, for x < b, f=10*x*a and for x>=b,
f=-10*x*a. I need to perform the fitting of the theoretical function to the
experimental data and obtain the value of R parameter.
Here is my code example
if x(N) < 5
elseif x(N) >= 5
I used R=2 as a starting parameter
How can I do?
It is possible to use leasqr?
thanks very much
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
- Fitting function,