Graphics properties, MATLAB in Engineering

Assignment Help:

Graphics Properties:

The MATLAB uses the Handle Graphics in all its figures. All figures consist of various objects, each of which is assigned a handle. The object handle is a exclusive real number which is used to refer to the object.

The different plot functions return a handle for the plot object that can then be stored in a variable. The plot function plots a sin function as shown below in a Figure Window and returns a real number that is the object handle. This handle will remain valid as long as the object exists.

1001_Graphics Properties.png

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

     >> y = sin(x);

     >> hl = plot(x,y)

     hl =

    158.5420

Note that after getting the plot, the Figure Window must not be closed, so that it would make the object handle invalid as the object wouldn't exist anymore! The properties of that object can be exhibited using the get function. This displays properties like the LineStyle, Color, LineWidth, and so forth.

 

>> get(hl)

     Color:  [0 0 1]

   EraseMode:  'normal'

  LineStyle:  '-'

   LineWidth:  0.5000

   Marker:  'none'

   MarkerSize:  6

  MarkerEdgeColor:  'auto'

   MarkerFaceColor:  'none'

   XData:  [1x63 double]

   YData:  [1x63 double]

   ZData:  [1x0 double]

   BeingDeleted:  'off'

  ButtonDownFcn:  []

  Children:  [0x1 double]

  Clipping:  'on'

  CreateFcn:  []

   DeleteFcn:  []

   BusyAction:  'queue'

  HandleVisibility:  'on'

  HitTest:  'on'

   Interruptible:  'on'

   Selected:  'off'

   SelectionHighlight: 'on'

     Tag:  ''

  Type:  'line'

  UIContextMenu:  []

  UserData:  []

  Visible:  'on'

  Parent:  157.5415

   DisplayName:  ''

    XDataMode:  'manual'

  XDataSource:  ''

  YDataSource:  ''

   ZDataSource:  ''


Related Discussions:- Graphics properties

Function call - modular program, Function call: In the function call, ...

Function call: In the function call, not any arguments are passed so there are no input arguments in the function header. The function returns an output argument, therefore th

Signals, Q.1: Consider the transmission of a sinusoid x(t) = cos(2f0t) thr...

Q.1: Consider the transmission of a sinusoid x(t) = cos(2f0t) through a channel a ected by multipath and Doppler. Let there be two paths, and assume the sinusoid is being sent fro

Individual structure variable, Individual structure variable: The indi...

Individual structure variable: The individual structure variable for one software package may look like this: The name of the structure variable is a package; it has f

Abnormalities on roads, analyzing traffic; determine motion of flow; calcul...

analyzing traffic; determine motion of flow; calculate tracklets; detect abnormalities;

Removing whitespace characters, Removing Whitespace Characters: The MA...

Removing Whitespace Characters: The MATLAB has functions which will eliminate trailing blanks from the end of a string and/or leading blanks from the starting of a string.

Illustration of image processing, Illustration of Image processing: Th...

Illustration of Image processing: This displays that there are 64 rows, or in another word, 64 colors, in this specific colormap. It also displays that the first five colors a

Function rmfield - structure, Function rmfield - structure: The functi...

Function rmfield - structure: The function rmfield eliminates a field from the structure. It returns a new structure with field eliminated, but does not modify the original st

Forward substitution, Forward substitution: The Forward substitution (...

Forward substitution: The Forward substitution (done methodically by first getting a 0 in the a 21 place, and then a 31 , and lastly a 32 ): For the Gauss technique,

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd