Create a 3D plot with shadow length, altitude, and time.
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Star Strider
2023-8-21
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!