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 nested for loops and the if statements: For illustration,when the file contains: 33   -11  2  4      5   9 22     5  -7  2     11    3 the outco

Sorting Strings: For the matrix of strings, the sort function works exactly as formerly for numbers. For illustration, >> words = char('Hi', 'Hello', 'Howdy', 'Goodbye', '

Median The median is defined only for a data set which has been sorted first, that means that the values are in order. The median of a sorted set of data values (n) is defined

Example of Functions which complete a task: For illustration, the function below just prints the number arguments passed to it in a sentence format: As this function i

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

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

Operation on file: We concentrate first on the fgetl function that reads strings from the file one line at a time. The fgetl functions afford more control over how the data is

Example of Mode When no value appears more often than any other, the smallest value in the vector will be the mode of the vector. >> shortx = [2 5 1 4]; >> mode(shortx

Opening and Closing a File: The Files are opened with the fopen function. By the default, fopen function opens a file for reading. If the other mode is preferred, a permission

Functions which complete a task without returning Values: Most of the functions do not compute values, but instead of accomplish a task like printing formatted output. As thes