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

Indexing into vectors of structures, Indexing into Vectors of structures: ...

Indexing into Vectors of structures: Frequently, when the data structure is a vector of structures, it is essential to iterate through the vector in order by various fields. F

Basic mathematical operations, Basic mathematical operations: All the ...

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

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

Num2str function - string, num2str function: The num2str function, tha...

num2str function: The num2str function, that converts real numbers, can be called in many ways. If only the real number is passed to the num2str function, it will generate a s

Illustration of if - else statement, Illustration of if - else statement: ...

Illustration of if - else statement: The one application of an if-else statement is to check for errors in the inputs to a script. For illustration, a former script prompted t

Str2num function - string, str2num function - String: The function str2...

str2num function - String: The function str2num does the opposite; it takes the string in which a number is stored and converts it to the type double: >> num = str2num('123.

Streamslice, I have a 400x2 vel.dat and 20x2 xy.dat file, how can i plot a ...

I have a 400x2 vel.dat and 20x2 xy.dat file, how can i plot a streamslice graph on matlab with this two files.

Use of nested if-else statements, Use of Nested if-else statements: By...

Use of Nested if-else statements: By using the nested if-else to select from among the three possibilities, not all the conditions should be tested. In this situation, if x is

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

Showing cell array elements and attributes, Referring to and Showing Cell A...

Referring to and Showing Cell Array Elements and Attributes: Just as with the other vectors, we can refer to individual elements of the cell arrays. The only difference is tha

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