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
Calling of Function polyval: The curve does not appear very smooth on this plot, but that is as there are only five points in the x vector. To estimate the temperature

Sorting Vectors of structures: Whenever working with vector of structures, it is very common to sort based on a particular field within the structures. For illustration, recal

Vector operations: As vectors are special cases of matrices, the matrix operations elaborated (addition, subtraction, multiplication, scalar multiplication, transpose) work on

Finding products by for loop: an illustration, when 5 is passed to be the value of the input argument n, the function will compute and return 1 + 2 + 3 + 4 + 5, or 15: >> s

Example Exit modular program: In the illustration below, the user  Chose the Limit; -   Whenever prompted for n, entered the two invalid values before finally ente

Executing a program: Running the program would be completed by typing the name of the script; this would call the other functions: >> calcandprintarea Whenever prompt

Solving 2 × 2 systems of equations: However this may be easy in a MATLAB, in normal finding solutions to the systems of equations is not. The systems which are 2 × 2 are, thou

Gauss, Gauss-Jordan elimination: For 2 × 2 systems of equations, there are well-defined, easy solution techniques. Though, for the larger systems of equations, finding solutio

Scaling:   change a row by multiplying it by a non-zero scalar sri →  ri For illustration, for the matrix:

Examine exponential function: The algorithm for the main script program is shown below:  Call a function eoption to show the menu and return the user's choice.  Loop