Re: [Scilab-users] Multiple regression on semi-log plot

2020-11-09 Thread Stéphane Mottelet
Hi, This is an easy task that can be done by fitting a piecewise-affine function like this: y = a*(x-theta)+phi, for x < theta y = b*(x-theta)+phi, for x >= theta Here is an example : function y=fun(x, param) a = param(1); b = param(2); theta = param(3); phi = param

[Scilab-users] Multiple regression on semi-log plot

2020-11-09 Thread arctica1963
Hello, I am looking to determine multiple regression lines from a single power spectral dataset (log power vs radial wavenumber), and was wondering if it is feasible in Scilab to compute something similar to the attached plot? I did locate a Matlab code for finding a turning point in a plot and p