From: Frédéric Bergeron on
Hi,

I'm currently programming a GUI for nivelling fields. Right now, my program draw the actual field using surf() and the best-fit plan using regress() and mesh(). The user can then draw a line on the best-fit plan to divide the field into 2 sections, so that the program calculate two best-fit planes for each of of the field section.

My problem is, when the user draw the line, the GUI traces 2 other planes instead of the initial best-fit plane, but these planes are independant at their junctions. I would like to do a 2-parts regression in 3d where the 2 best-fit planes have the same intersection line. Is that a function I can use for that? I read about the Statistic Toolbox, but I didn't found a function wich does Multi-phase mutiple linear regression in 3D.

Can anybody help me?? It will be a great challenge... I think!

Thank you,
Best regards,
From: Frédéric Bergeron on
Just the name of a function, or a link where I can find more information about mul-phase multiple linear regression will help! Thanks!