Create a 3D plot with shadow length, altitude, and time.
    4 views (last 30 days)
  
       Show older comments
    
    Sanley Guerrier
 on 21 Aug 2023
  
    
    
    
    
    Commented: Star Strider
      
      
 on 21 Aug 2023
            Dear experts;
I would like to create a nice 3D plot with variables shadow length, altitude, and Time. I attached my code and the data here along  with a sample plot that I would like to have. 
Your help will be greatly appriciated
2 Comments
Accepted Answer
  Star Strider
      
      
 on 21 Aug 2023
        Filling the inside of the 3D curve is straightforrward — 
run('shadecode.mlx')
T1 = readtable('Shadedata.xlsx')
t = T1.Time;
Alt = T1.Altitude;
SL = T1.ShadowLength;
SLm = T1.ShadowLength_m;
figure
plot3(Alt, SL, t)
hold on
patch([Alt flip(Alt)], [SL flip(SL)], [t flip(t)], [0 0 0]+0.5, 'FaceAlpha',0.5)
hold off
grid on
xlabel('Altitude')
ylabel('Shadow Length')
zlabel('Time')
Filling the outside is not.  
.
6 Comments
More Answers (0)
See Also
Categories
				Find more on Annotations in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!






