Illustration of graphics properties, MATLAB in Engineering

Assignment Help:

Illustration of Graphics properties:

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

    >> get(hl,'LineWidth')

    ans =

     0.5000

 

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)


Related Discussions:- Illustration of graphics properties

Printrectarea function - subfunction, printrectarea function: functio...

printrectarea function: function call: printrectarea(length, width) function header: function printrectarea(len, wid)   In the function call, there are two argume

Calling of function polyval, Calling of Function polyval: The curve do...

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

Function fieldnames - structure functions, Function fieldnames - structure ...

Function fieldnames - structure functions: The function fieldnames will return the names of the fields which are contained in the structure variable. >> pack_fields = fiel

Is functions in matlab, IS Functions in Matlab: There are many functio...

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

Algorithm for subfunction, Algorithm for subfunction: The algorithm fo...

Algorithm for subfunction: The algorithm for subfunction askforn is as shown:  Prompt the user for the positive integer n.  Loop to print an error message and reprom

Polyhedron - graphics objects, Polyhedron - graphics objects: The fiel...

Polyhedron - graphics objects: The field polyhedron.vertices is a matrix in which each row presents (x,y,z) points. The field polyhedron.faces defines the faces: for illustrat

Variable scope, Variable Scope: The scope of any of variable is the wo...

Variable Scope: The scope of any of variable is the workspace in which it is valid. The workspace generated in the Command Window is known as the base workspace. As we know

Matrix operations, Matrix operations: There are some common operations...

Matrix operations: There are some common operations on matrices. The operators which are applied term by term, implying that the matrices should be of similar size, sometimes

Displaying expressions, Displaying expressions: The good-looking funct...

Displaying expressions: The good-looking function will show such expressions by using exponents; for illustration, >> b = sym('x^2') b = x^2 >> pretty(b)

Example to change the line width from the default, Example to change the li...

Example to change the line width from the default: For illustration, to change the line width from the default of 0.5 to 1.5: >> set(hl,'LineWidth',1.5) As long as the

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd