Illustration of graphics properties, MATLAB in Engineering

Illustration of Graphics properties:

A particular property can also be exhibited, for illustration, to view the line width:

    >> get(hl,'LineWidth')

    ans =



To view the objects, and their properties, the meaning of properties, and the valid values, goes to the MATLAB Help. Under the Contents tab, click the Handle Graphics Property Browser. Then, click Plot Objects; a few options can be seen. Click Lineseries that is used to generate figures by using the plot function, to view a list of the property names and a brief description of each.

For example, the Color property is a vector which stores the color of the line as three individual values for the red, green, & blue intensities, in that order. Each value is in the range from 0 (that means none of that color) to 1. In the earlier illustration, the Color was [0 0 1], that means no red, no green, but full blue-in another words, the line drawn for the sin function was blue. Some more illustrations of possible values for the Color vector are:

[1 0 0] is red

[0 1 0] is green

[0 0 1] is blue

[1 1 1] is white

[0 0 0] is black

[0.5 0.5 0.5] is a shade of grey


All the properties listed can be changed, by using the set function. The set function is called in the format as:

set(objhandle, 'PropertyName', property value)

Posted Date: 10/22/2012 2:06:09 AM | Location : United States

Related Discussions:- Illustration of graphics properties, Assignment Help, Ask Question on Illustration of graphics properties, Get Answer, Expert's Help, Illustration of graphics properties Discussions

Write discussion on Illustration of graphics properties
Your posts are moderated
Related Questions
Passing Structures to Functions: The whole structure can be passed to a function, or separate fields can be passed. For illustration, here are the two distinct versions of a f

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

Structures: The Structures are data structures which group together values which are logically related in what are known as the fields of structure. The benefit of structures

Basic mathematical operations: All the basic mathematical operations can be executed on symbolic expressions and variables (example, add, raise to a power, multiply, subtract,

Cross Product: The cross or outer product a × b of two vectors a and b is defined only whenever both a and b are the vectors in three-dimensional space, that means that they b

Appending variables to the Mat-File: Appending to the file adds to what has been saved in a file, and is accomplished by using the -append option. For illustration, supposing

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

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

Changing Case: The MATLAB has two functions which convert strings to all uppercase letters, or all lowercase, known as the upper and lower. >> mystring = 'AbCDEfgh';

Algorithm for the function explaine: The algorithm for the function explaine is as shown:  Print a description of e, the exp function, and how to find the approximate va