How to name axes from the script
显示 更早的评论
Hi community, Ihave a slight problem. I have written a program which include plotting of graph. Now i want the program to prompt me to input desired axes titles when the program is executed/run. Can somebody asist.
采纳的回答
更多回答(1 个)
KSSV
2023-1-23
plot(rand(1,10))
labelx = input('Input Xlabel:') ;
labely = input('Input Ylabel:') ;
xlabel(labelx)
ylabel(labely)
类别
在 帮助中心 和 File Exchange 中查找有关 Line Plots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!