Text graphic function - graphics objects, MATLAB in Engineering

Text graphic function - Graphics objects:

The text graphic function permits text to be printed in a Figure Window, involving special characters which are printed by using \specchar, where specchar is the real name of the special character. The format of the call to text function is as shown below:

text(x,y,'text string')

where x & y are coordinates on the graph of the starting of the text box in which the text string appears.

To see the options for special characters, under the Contents tab in Help, click the Handle Graphics Property Browser, then click Core Objects, and then select Text. The special characters are shown in a table under the String property. The special characters involve letters of the Greek alphabet, arrows, and characters often used in equations. For illustration, figure shows the Greek symbol for pi and a right arrow in the text box.

>> x = -4:0.2:4;

>> y = sin(x);

>> hp = line(x,y,'LineWidth',3);

>> thand = text(2,0,'Sin(\pi)\rightarrow')

25_Text graphic function - Graphics objects.png

Posted Date: 10/22/2012 8:17:07 AM | Location : United States







Related Discussions:- Text graphic function - graphics objects, Assignment Help, Ask Question on Text graphic function - graphics objects, Get Answer, Expert's Help, Text graphic function - graphics objects Discussions

Write discussion on Text graphic function - graphics objects
Your posts are moderated
Related Questions
Data structures: The Data structures are variables which store more than one value. In order to made sense to store more than one value in a variable, the values must in some

Function used in sound files: The MATLAB has numerous other functions which let you read and play sound or audio files. In the audio files, sampled data for each audio channel

For Loops which do not use an iterator Variable in the action: In all the illustrations that we seen so far, the value of the loop variable has been used in same way in the ac

Variable Scope: The scope of any of variable is the workspace in which it is valid. The workspace generated in the Command Window is known as the base workspace. As we know

Defined a variable in work space: The variables defined in the script will become a part of the workspace: >> clear >> who >> mysummfile    15 >> who

Interpolation and extrapolation: In most cases, it is desired to estimate values other than at the sampled data points. For illustration, we may want to estimate what the temp

Square Matrices: If a matrix has similar number of rows and columns, for illustration, if m == n, the matrix is square matrix. The definitions which follow in this part apply

Matrix solutions to systems of the linear algebraic equations: The linear algebraic equation is an equation of the form a 1 x 1 + a 2 x 2 + a 3 x 3    .  .  .  .  a n x n

Intersect function and setdiff function: The intersect function rather than returns all the values which can be found in both of the input argument vectors. >> intersect(v

Algorithm for appex subfunction: The algorithm for appex subfunction is as shown:  Receives x & n as the input arguments.  Initializes a variable for running sum of t