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
Illustration of Passing arguments to functions: Here is an illustration of calling this function: >> printrand() The random # is 0.94 As nothing is passed to

. Generate the following signal, x(n)=1+cos((25*pi*n)/100),0 Compute the DTFT of x[n] for w=0:0.01:2*pi Plot the Real part, imaginary part, the amplitude and phas

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

Replacing a string - function strrep: The function strrep finds all the occurrences of a substring within the string, and substitutes them with a new substring. The order of a

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

Function cirarea - Anonymous functions: The function handle name is cirarea. The one argument is passed to the input argument radius. The body of the function is an expression

Illustration of gauss-jordan elimination: An illustration of interchanging rows would be r1 ¬→ r3, that would results: Now, beginning with this matrix, an illustration of sc

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

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

A matlab function to calculate filter order