필터 지우기
필터 지우기

Add title to current axes

조회 수: 27 (최근 30일)
Ashish Sheikh
Ashish Sheikh 2015년 2월 24일
댓글: dpb 2015년 2월 25일
How one can add title to the plot without using "TITLE" Command???? You cannot even use the figure GUI ?
Can anyone give me an answer?
  댓글 수: 3
Ashish Sheikh
Ashish Sheikh 2015년 2월 25일
Because This was asked in one of my interviews. I know only these two ways to give title to a plot ?
I am curiosu to know if there is any other way??
Guillaume
Guillaume 2015년 2월 25일
What a stupid interview question! Why not use the tool that's specifically designed for the job?

댓글을 달려면 로그인하십시오.

채택된 답변

Jos (10584)
Jos (10584) 2015년 2월 25일
set(get(gca, 'title'), 'string', 'My First Title')
  댓글 수: 2
Ashish Sheikh
Ashish Sheikh 2015년 2월 25일
I think this might be an answer for the question i have asked ... Thanksss
dpb
dpb 2015년 2월 25일
Still, if you can use set, why can't you use title? It also can accept a handle and is less complex syntax.
title(gca,'Your title text')

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

dpb
dpb 2015년 2월 25일
Just reread the question -- guess I didn't follow before. Yes, "TITLE" is included as an option under the "Insert" menu item on figures.

카테고리

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