Data extraction and intersection of trendline offset through points

Hello everyone,
First I have to extract different sets of data, then I have to make a trendline through specific set of points, make an offset line and determinating their intersection (for every extracted set of data). If someone can help me I can describe problem in more detail.
Thank you, best regards.

 Respuesta aceptada

Walter Roberson
Walter Roberson el 28 de Jul. de 2011
Sounds like a job for the \ operator (which you can find described under the name "mldivide")

1 comentario

In classic Y=m*X+b form:
MB = [X(:),ones(length(X),1)] \ Y(:);
M = MB(1);
B = MB(2);

Iniciar sesión para comentar.

Más respuestas (1)

can31
can31 el 29 de Jul. de 2011
I think I'll need more than this since I'm a newbie matlab user...

Preguntada:

el 28 de Jul. de 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by