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

Illustration of image processing, Illustration of Image processing: Th...

Illustration of Image processing: This displays that there are 64 rows, or in another word, 64 colors, in this specific colormap. It also displays that the first five colors a

Initializing the data structure - function, Initializing the data structure...

Initializing the data structure - Function: Function is shown as:   >> printcylvols(cyls) Cylinder x has a volume of 169.6 Cylinder a has a volume of 100.5

Logical scalar values - operators, Logical scalar values: The MATLAB a...

Logical scalar values: The MATLAB also has or and and operators which work element wise for the matrices: These operators will compare any of the two vectors or matric

Defined a variable in work space, Defined a variable in work space: Th...

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

Finding a sting - function strfind, Finding a sting - function strfind: ...

Finding a sting - function strfind: The function strfind does necessarily similar thing, except that the order of the arguments does make dissimilarity. The common form is str

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

Illustration of gauss-jordan elimination, Illustration of gauss-jordan elim...

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

Example of menu driven modular program, Example of Menu driven modular prog...

Example of Menu driven modular program: As an illustration of such a menu-driven program, we will write a program to discover the constant e. The constant e, known as the n

Example exit modular program, Example Exit modular program: In the ill...

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

Example of modular program, Example of modular program: In a modular p...

Example of modular program: In a modular program, there would be one main script which calls three separate functions to complete these tasks: A function to prompt an us

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