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 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 som

bjjh

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

function sortrows - sorting strings: The function sortrows sorts each and every row as a block, or group, and it also will work on numbers. Here in this illustration the rows

Working of Editor and debugger: Editor/Debugger, or commands can be typed from Command Window. For illustration, the dbstop command below will set a breakpoint in the fifth li

Example of customizing plots: As the other illustration of customizing plots, the pieces of a pie chart can be "exploded" from the rest. In this situation, the two vectors are

Logical Built-In Functions: There are built-in functions in the MATLAB which are useful in conjunction with vectors or matrices of all logical true or false values; two of the

Representing Logical true and False: It has been stated that expressions which are theoretically true really have the integer value of 1, and expressions which are theoretical

Example of Nested functions: For illustration, the function below computes and returns the volume of a cube. Three arguments are then passed to it, for the width and length of

Need of a nested loop: How would we sum each individual column, rather than getting an overall sum? Answer: The programming technique would need a nested loop in whi