How to plot graph scale?
1 次查看(过去 30 天)
显示 更早的评论
Hello
In the picture below, how can I create the scales shown by the arrows?
Thank you
0 个评论
采纳的回答
Sajeer Modavan
2019-3-18
figure
plot3([2953500 2955000],[3805000 3805000],[4150000 4150000],'Linewidth',2),hold on
plot3([2955000 2955000],[3805000 3806500],[4150000 4150000],'Linewidth',2)
plot3([2955000 2955000],[3805000 3805000],[4150000 4152000],'Linewidth',2)
text(2952800,3805000,4150000,'1km','FontSize',12)
text(2955000,3807000,4150000,'1km','FontSize',12)
text(2955000,3805000,4152500,'1km','FontSize',12)
plot3([2962500 2964000],[3820000 3820000],[4150000 4150000],'Linewidth',2)
plot3([2964000 2964000],[3820000 3821500],[4150000 4150000],'Linewidth',2)
plot3([2964000 2964000],[3820000 3820000],[4150000 4152000],'Linewidth',2)
text(2961800,3820000,4150000,'1cm','FontSize',12)
text(2964500,3820000,4150000,'1cm','FontSize',12)
text(2963500,3820000,4153000,'1cm','FontSize',12)
grid on
xlim([2952000 2966000])
ylim([3804000 3822000])
zlim([4150000 4162000])
set(gca,'ydir','reverse');
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!