필터 지우기
필터 지우기

Plot Title

조회 수: 1 (최근 30일)
James
James 2011년 3월 28일
I want to give a plot a title that includes the value of a variable. For example, the tite of the plot might be "Disp V time for point at x=1.5"
I want the 1.5 to come from a variable...
can anyone help??
thanks

답변 (1개)

Friedrich
Friedrich 2011년 3월 28일
Hi James,
I think you are looking for the num2str function. I have written a small example code:
a = 1.5;
plot(1:10);
title(['Text you like and than the value ',num2str(a)])

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by