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
IS Functions in Matlab: There are many functions which are built into MATLAB which test whether or not something is true; these function names start with the word is. As these

Dot Product: The dot or inner product of two vectors a and b is written as a • b and is defined as  In another words, this is like matrix multiplication when multiplyi

Function used in binary search: The function below implements this binary search algorithm. It receives two arguments: the sorted vector and a key (on the other hand, the func

Uses of Function handles: The Function handles can also be generated for functions other than anonymous functions, both built-in & user-defined functions. For illustration, th

Sound Files: The sound signal is an illustration of a continuous signal which is sampled to result in a discrete signal. In this situation, sound waves traveling through the a

Reading from a Mat-File: The load function is used to read from various types of files. As with save function, by default the file will be supposed to be a MAT-file, and load

Comparing strings: There are few functions which compare strings and return logical true when they are equivalent or logical false when not. The function strcmp compares the s

Built-in colormaps: The MATLAB has numerous built-in colormaps which are named; the reference page on colormap shows them. Calling the function colormap without passing any ar

Illustration of Preallocating a Vector: Illustration of calling the function: >> myveccumsum([5 9 4]) ans =     5  14  18 At the first time in the loop, outvec wil

Gauss-Jordan: The Gauss-Jordan elimination technique begins in similar way which the Gauss elimination technique does, but then rather than of back-substitution, the eliminati