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.

 채택된 답변

Walter Roberson
Walter Roberson 2011년 7월 28일

0 개 추천

Sounds like a job for the \ operator (which you can find described under the name "mldivide")

댓글 수: 1

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

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

can31
can31 2011년 7월 29일

0 개 추천

I think I'll need more than this since I'm a newbie matlab user...

Community Treasure Hunt

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

Start Hunting!

Translated by