Location of a rectangle - graphics objects, MATLAB in Statistics

Location of a rectangle - graphics objects:

The location of a rectangle is [x y w h], where x and y are the coordinates of the lower left point, here w is the width, and h is the height. The default rectangle has a location of [0 0 1 1]. The default Curvature is [0 0], that means no curvature. The values range from [0 0] (i.e., no curvature) to [1 1] (i.e., ellipse). A more interesting rectangle object is shown in figure. Note that properties can be set whenever calling the rectangle function, and also consequently by using the set function.

1631_Location of a rectangle.png

>> rh = rectangle('Position', [0.2, 0.2, 0.5, 0.

    'Curvature',[0.5, 0.5]);

>> axis([0 1.2 0 1.2])

>> set(rh,'Linewidth',3,'LineStyle',':')

Posted Date: 10/22/2012 8:23:50 AM | Location : United States







Related Discussions:- Location of a rectangle - graphics objects, Assignment Help, Ask Question on Location of a rectangle - graphics objects, Get Answer, Expert's Help, Location of a rectangle - graphics objects Discussions

Write discussion on Location of a rectangle - graphics objects
Your posts are moderated
Related Questions
Combining Nested FOR Loops and the IF Statements: The statements inside a nested loop can be any of the valid statement, involving any selection statement. For e.g., there can

MENU Function: The MATLAB also has a built-in function known as menu which will display a figure Window with push buttons for the choices. The very first string passed to the

Execution of persistent variables: The functions can also be called from the script or from the Command Window, as shown here. For illustration, the functions are called first

Illustration of Median When the vector is not in sorted order to start with, the median function will still return the right answer (it will sort the vector automatically). For

Roots function - Polynomials: The roots function in MATLAB is used to find the roots of an equation represented by a polynomial. For illustration, for the mathematical functio

Index vector: The index vector is then used as the indices for original vector. To get grades vector in ascending order, the indices used would be grades (2), grades (5), and

Variable packages: Variable packages are now the vector of structures, hence each and every element in the vector is a structure. To show one element in the vector, an index i

Rectangle - graphics objects: The other core graphics object is the rectangle that can have curvature added to it (!!). Merely calling the function rectangle without any argum

Example of customizing plots: As the other illustration of customizing plots, the pieces of a pie chart can be "exploded" from the rest. In this situation, the two vectors are

Logical Built-In Functions: There are built-in functions in the MATLAB which are useful in conjunction with vectors or matrices of all logical true or false values; two of the