how legend update with variable
조회 수: 1 (최근 30일)
이전 댓글 표시
t=linspace(0.1,1,10)
legend ('0.1','0.2','0.3',......upto '1')
how legend update with variable 't' with there values on graph
댓글 수: 4
Bruno Luong
2019년 8월 23일
편집: Bruno Luong
2019년 8월 23일
There is something called ARRAYFUN
legend_txt = arrayfun(@(x)sprintf('%.1f',x),t,'UniformOutput',0)
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Legend에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!