Dot path in a 3d Surface plot
Mostrar comentarios más antiguos
Good morning, i plotted a surface with the following script: p00 = 10.08; p10 = -0.3684; p01 = 0.7184; p20 = -0.08948 ; p11 = 0.2135 ; p02 = -0.06468 ; p30 = -0.004133 ; p21 = 0.009307 ; p12 = -0.008105 ; p03 = 0.002058 ; phi= (5:2:31); a= (12.5:2.5:42.50); [x,y]= meshgrid(phi,a); axis ([0,30,0,45,0,70])
ok=ones(81);
z = p00+ p10*x+ p01*y + p20 * (x.^2) + (x.*y.* p11)+ p02*(y.^2) + p30*(x.^3) + ((x.^2).*y)* p21 + p12*(x.*(y.^2)) + p03*(y.^3); surf (x,y,z)
Now i need to plot, in the same window, a dot moving between 5 points. I have 3 vectors representing the intermidiate position of the dot: M= [13,15,11,10,9,13]; N = [23,21,22,24,26,22]; O = [35,38,29,28,30,32]; So the point is to see the dot mooving from (13,23,35) to (13,22,32) passing from the other three points. Thanks
Respuestas (0)
Categorías
Más información sobre Surface and Mesh Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!