How to name axes from the script
조회 수: 5 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
채택된 답변
추가 답변 (1개)
KSSV
2023년 1월 23일
plot(rand(1,10))
labelx = input('Input Xlabel:') ;
labely = input('Input Ylabel:') ;
xlabel(labelx)
ylabel(labely)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Object Programming에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!