필터 지우기
필터 지우기

How do I insert a variable into a graph title?

조회 수: 3 (최근 30일)
matlabkid602
matlabkid602 2017년 7월 20일
댓글: matlabkid602 2017년 7월 20일
Hi, I'm writing a piece of code where I want to input arguements then plot. The length of the vector that I input changes the title of the graph. I'm doing this manually just now.
How do I input into my graph title "plotting length(xvector) dipoles" where xvector length changes at the start of the code?
It just puts "length(xvector)" in the graph title.
Thanks.

채택된 답변

KL
KL 2017년 7월 20일
title(['plotting ' num2str(length(xvector)) ' dipoles'])

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by