Find the line where 2 planes intersect
    6 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    katherine keogh
 il 12 Gen 2021
  
    
    
    
    
    Modificato: Bruno Luong
      
      
 il 13 Gen 2021
            I ahve 2 planes 256x=0 and z=50000, I want to find the line where they itersect but I want to create something that will work for any line I input. Can anyone help?
0 Commenti
Risposta accettata
  Bruno Luong
      
      
 il 12 Gen 2021
        
      Modificato: Bruno Luong
      
      
 il 13 Gen 2021
  
      % Planes implicit equations are:
%   a1*x + b1*y + c1*z = d1;
%   a2*x + b2*y + c2*z = d2;
%
a1 = 256;   b1=0; c1=0; d1=0;
a2 = 0;     b2=0; c2=1; d2=50000;
M = [a1, b1, c1;
     a2, b2, c2];
d = null(M); % parallel to cross(M(1,:),M(2,:))
xyz0 = M \ [d1; d2];
% Line parametric equation is L(t) = xy0 + t*d, t in R.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Dynamic System Models in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

