Calculate matrix from symbolic equation
    7 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
Hi everyone,
I have used the following code to generate a symbolic equation for a plane given 3 points.
P1=[1747 444 1051];
P2=[1771 115 1053];
P3=[9 290 66.05];
normal = cross(P1-P2, P1-P3);
syms x y z;
P = [x,y,z];
planefunction = dot(normal, P-P1);
dot(P-P1, normal);
realdot = @(u, v) u*transpose(v);
realdot(P-P1,normal);
zplane = solve(planefunction, z);
I would now like to generate an m x n matrix (3506 x 1057) using this equation but keep getting stuck. Does anyone know how to do this? I am sure it is very simple
Many thanks in advance
2 Commenti
Risposte (1)
  Sean de Wolski
      
      
 il 19 Set 2013
        zp = subs(zplane,{x,y,z},{1:100,1:100,1:100})
To get a numeric solution from this:
double(zp)
Vedere anche
Categorie
				Scopri di più su Calculus 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!


