i would like to know how can i display my time position instead of title with code num2str () '%4i' in bottom right. The data comes from an excel table.

 채택된 답변

Chad Greene
Chad Greene 2021년 5월 5일

1 개 추천

This question is pretty vague, but here's pi displayed at the bottom right corner of a plot:
txt = text(1,0,num2str(pi,'%4i'),'horiz','right','vert','bot','units','normalized');

댓글 수: 3

Ali Golmohammadi
Ali Golmohammadi 2021년 5월 5일
thanks. i want to show changing time from a excel file in right bottom.but as well i cant add with your codes some text to it.
txt = text(1,0,'Measuring time in seconds',num2str(Row(q,3),'%4i'),'horiz','right','vert','bot','units','normalized');
For the Excel question I recommend opening a separate question specifically about that part of your question.
To add words to the text, put it in square brackets, like this:
txt = text(1,0,['Easy as ',num2str(pi,'%4i')],'horiz','right','vert','bot','units','normalized');
Ali Golmohammadi
Ali Golmohammadi 2021년 5월 5일
thanks a lot.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by