Modify axis label for each plot within loop

조회 수: 7 (최근 30일)
L'O.G.
L'O.G. 2022년 12월 6일
답변: Voss 2022년 12월 6일
I am generating plots for a series of values using a for loop and wish to output the value in the axis label. How do I do that?
ylabel('z = [insert value here]')

채택된 답변

Voss
Voss 2022년 12월 6일
z = 2.1;
ylabel(sprintf('z = %.2f',z))
See: sprintf

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by