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 =

     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)

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
Reading from a File in a While Loop: Though in most languages the combination of a loop and an if statement would be essential to determine whether or not the elements in a ve

Write a program to examine exponential function: We will write a program to examine the value of e and the exponential function. It will be a menu-driven. The menu options wil

Implementation of binary search: The binary search can be implemented as a recursive function. The recursive function below also implements this binary search algorithm. It re

Passing arguments to functions: In all these functions examples faraway, at least one of the arguments was passed in the function call to be the value(s) of the equivalent inp

Illustration of Matrix solutions: For illustration, consider the three equations below with 3unknowns x 1 ,x 2 , and x 3 : We can write this in the form Ax = b here A

Function used in sound files: The MATLAB has numerous other functions which let you read and play sound or audio files. In the audio files, sampled data for each audio channel

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

Storing Strings in Cell Arrays: The one good application of a cell array is to store strings of various lengths. As cell arrays can store various types of values in the elemen

Illustration of finding a sting: Let's enlarge this, and write a script which creates a vector of strings which are phrases. The outcome is not suppressed so that the string

Program to Counting in a while loop: The script initializes variable counter to 0. Then, in the while loop action, each and every time the user successfully enter a number, th