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
Illustration of Indexing: Though, rather than of creating the index vector manually as shown here, the process to initialize the index vector is use to a sort function. The al

Generic code for Reading from Files: The generic code to complete this is as shown below:   fid = fopen('filename'); if fid == -1    disp('File open not suc

Sequential Search: A sequential search is completed by looping through the vector element-by-element starting from the beginning, looking for the key. Usually the index of the

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

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

Illustration of Indexing into vectors of structures: For illustration, the function to print the information from packages has been modified therefore in addition to the vecto

Persistent Variables: Generally, whenever a function stops executing, then the local variables from that function are cleared. That means that each and every time a function i

MENU Function: The MATLAB also has a built-in function known as menu which will display a figure Window with push buttons for the choices. The very first string passed to the

Introduction and Purpose In the lectures and tutorials you have been introduced to a number of probability distributions. You have also learned that modelling any system (such

Curve Fitting: The data is fundamentally either discrete or continuous. In most of the applications, data is sampled, for illustration, The temperature recorded every ho