Does matlab have a function which can calculate the intersections of two line in N dimension?

4.9k Views Asked by At

Does matlab have a function which can calculate the intersections of two line in N ($N\in R$)dimension?

line 1 is as follows $w_1^Tx_2=c_1$, where $w_1,x_1 \in R^N$ line 2 is as follows $w_2^Tx_2=c_2$, where $w_2,x_2 \in R^N$

Sorry, the above are hyperplanes. Since hyperplanes can be written in a concise way but lines in dimension ($N>2$) cannot, I tend to make a mistake like this.

Maybe the most concisest way to form a line is as follows, the line through $x_0$ in the direction $v$, $x=x_0+kv,k\in R$

I know there is a function 'polyxpoly'. But it only deal with $N=2$, right?

Thank you;)

1

There are 1 best solutions below

1
On

Try this. Do you have this in your version of matlab?