title: How to find intersection point of a line in a plane in 3D space using MATLAB
body: <p>I have a plain with known four co-ordinates and a line with two known co-ordinates as shown in figure.
  <a href="https://i.stack.imgur.com/nIOSt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nIOSt.png" alt="enter image description here"></a></p>
  
  <p>The four co-ordinates of plane are </p>
  
  <pre><code> A = (-5    -5    -8)
   B = ( 15    15    -8)
   C = ( 15    15    12)
   D = ( -5    -5    12)
  </code></pre>
  
  <p>The co-ordinates of line are </p>
  
  <pre><code>M = (1.3978,40,6.1149)
  N = 4.3943, 4.8078,0.3551)
  </code></pre>
  
  <p>In this case line and plain intersects,then how can I find point of intersection of line and plane in 3D space by using MATLAB?
  or How can I check both are intersecting or not?</p>
  
  <p>I have tried to find solution by following  video <a href="https://www.youtube.com/watch?v=0qYJfKG-3l8" rel="nofollow noreferrer">tutorial to find equation of plane from three points</a> and <a href="https://www.youtube.com/watch?v=qVvvy5hsQwk" rel="nofollow noreferrer">tutorial for finding point where line intersects a plain</a></p>
  
  <p>But in my case, equation of plane is zero. So I am confused. Can anyone help me?</p>
  
  <p>Thanks in advance,
  Manu</p>