getgcatitle

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 4.5, Creation date: 2019-03-24, Last change: 2025-08-18

returns the current title of gca as string



See Also: SGtitle , getgcapixelsize

Example Illustration

 missing image of getgcatitle

Syntax

s=getgcatitle

Output Parameter

s: string

Examples


figure; title('test'); getgcatitle




Copyright 2019-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Algorithm (Workflow)

This function, getgcatitle, retrieves the current title of the current axes in a MATLAB figure and returns it as a string.

Input Parameters

The function does not take any input parameters.

Output

Algorithm Steps

  1. Use the get function to access the current axes (gca) and retrieve its title object.
  2. Extract the String property from the title object, which contains the title text.
  3. Return this string as the output.

Example Usage

The function can be used in the following way:

figure; 
title('test'); 
s = getgcatitle;

In this example, a figure is created, a title 'test' is set, and then getgcatitle is called to retrieve the title, which will return 'test'.

Algorithm explaination created using ChatGPT on 2025-08-18 21:50. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-09-21