Example of core objects, MATLAB in Statistics

Example of Core objects:

The one core graphics object is a line that is also what the plot function produces. Here is an illustration of generating a line object, altering some properties, and saving the handle in a variable hl:

>> x = -2*pi: 1/5 : 2*pi;

>> y = sin(x);

>> hl = line(x,y,'LineWidth', 3, 'Color', [0.5 0.5 0.5])

hl =

   159.0405

 

As shown in figure below, this draws a reasonably thick grey line for the sin function. As the handle will be valid as long as the Figure Window is not closed. A few of the properties of this object are as shown below:

>> get(hl)

Color = [0.5 0.5 0.5]

EraseMode = normal

LineStyle = -

LineWidth = [3]

Marker = none

MarkerSize = [6]

t = auto

MarkerFaceColor = none

XData = [ (1 by 63) double array]

YData = [ (1 by 63) double array]

ZData = []

etc.

2499_Example of Core objects.png

Posted Date: 10/22/2012 8:15:14 AM | Location : United States







Related Discussions:- Example of core objects, Assignment Help, Ask Question on Example of core objects, Get Answer, Expert's Help, Example of core objects Discussions

Write discussion on Example of core objects
Your posts are moderated
Related Questions
Function polyval - interpolation: The function polyval can then be used to compute the polynomial at particular values. For illustration, we could compute at every value in th

Indexing: The Indexing is an alternate to sort a vector. With indexing, the vector is left in its original order. An index vector is used to point values in the original vecto

Areacirc function: The areacirc function can be called from the Command Window as shown here, or from a script. Here is a script which will prompt the user for the radius of o

Example of Median For the vector [1 4 5 9 12 33], the median is the average of the 5 & 9 in the middle: >> median([1 4 5 9 12 33]) ans =     7

Nested for Loops: The action of a loop can be any of the valid statement(s). Whenever the action of a loop is the other loop, this is known as nested loop. As an illustrati

fopen function - file function: The fopen opens the file for reading. The fscanf then reads each line one double and one character, and put each pair in individual columns in

Help function: Function is computing the two values, there are two output arguments in the function header (i.e., area & circum), that are placed in the square brackets [ ]. A

The IF Statement: The if statement selects whether or not the other statement, or group of statements, is executed. The common form of the if statement is as shown below: i

Illustration of Input in a for loop: In this illustration, the loop variable iv iterates through the values 1 through 3, therefore the action is repeated three times. The acti

Tracing: Sometimes, when a program has loops and/or selection statements and is not running properly, it is helpful in the debugging process to know exactly which statements h