How can I put a display that shows changing variables in a plot?
조회 수: 40 (최근 30일)
이전 댓글 표시
I wanted to know if I could put a display that shows me a number that changes in a plot.
답변 (2개)
Aquatris
2019년 12월 5일
Assuming you plot in a for loop and the changing variable is x, below code will update the title of the plot to be equal to x
for i = 1:length(x)
plot(t,x(i))
title(x(i))
pause(0.001)
end
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Formatting and Annotation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!