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
Example of sorting strings: To sort a cell array of strings, also the sort function is used. The illustration is as follows, >> engcellnames = {'Chemical','Mechanical',.

Rectangle - graphics objects: The other core graphics object is the rectangle that can have curvature added to it (!!). Merely calling the function rectangle without any argum

Nested Functions: We have seen that the loops can be nested, that means that one inside of the other, functions can be nested. The terminology for nested functions is that an

Properties of the text box - graphics objects: By using get will show properties of the text box, the illustration is as shown below: >> get(thand)   BackgroundColor

Logical errors: The Logical errors are more complicated to locate, as they do not result in any error message. The logical error is a mistake in reasoning by the programmer, b

Variable packages: Variable packages are now the vector of structures, hence each and every element in the vector is a structure. To show one element in the vector, an index i

Advanced File Input and output: Where 'format' involves the conversion characters much like those used in the fprintf function. For illustration, to read the file 'subjexp.dat

Illustration of Nested loops: Running the script shows the output: >> printstars ***** ***** ***** The variable rows identifies the number of rows to print, and

Location of a rectangle - graphics objects: The location of a rectangle is [x y w h], where x and y are the coordinates of the lower left point, here w is the width, and h is

Lower Level File I/O Functions: Whenever reading from data file, as long as the data in the file is "regular" the load function works-in another words, the similar type of dat