Docsity

Plotting, Arguments List and Number Representation | COMP 116, Study notes of Computer Science

Toggle sidebar
bg1
1
๎˜๎˜‚๎˜ƒ๎˜„๎˜…๎˜†๎˜‡๎˜ˆ๎˜ƒ๎˜‰๎˜…๎˜‚๎˜Š๎˜ƒ๎˜…๎˜Š๎˜‹๎˜ˆ๎˜‰๎˜Œ๎˜‚๎˜ƒ๎˜‰๎˜๎˜‰๎˜ˆ๎˜Š๎˜Ž๎˜„๎˜…๎˜๎˜„๎˜๎˜‘๎˜‘๎˜‰๎˜‚๎˜
๎˜’๎˜…๎˜‘๎˜“๎˜Š๎˜”๎˜”๎˜•
๎˜Ž๎˜–๎˜…๎˜ƒ๎˜ƒ๎˜‰๎˜‚๎˜๎˜—๎˜Š๎˜๎˜„๎˜๎˜‡๎˜‘๎˜Œ๎˜‚๎˜ƒ๎˜Š๎˜–๎˜‰๎˜˜๎˜ƒ๎˜—๎˜Š๎˜‚๎˜‡๎˜‘๎˜™๎˜Œ๎˜„๎˜Š
๎˜„๎˜Œ๎˜“๎˜„๎˜Œ๎˜˜๎˜Œ๎˜‚๎˜ƒ๎˜๎˜ƒ๎˜‰๎˜…๎˜‚
๎˜š ๎˜‡๎˜‚๎˜Œ ๎˜”๎˜›๎˜—๎˜Š๎˜œ ๎˜ ๎˜๎˜ž
Plotting Advance control
๎˜Ÿ ๎˜Ž๎˜–๎˜…๎˜ƒ !๎˜—"๎˜—#๎˜“๎˜„๎˜…๎˜“๎˜Œ๎˜„๎˜ƒ"$ ๎˜๎˜‘๎˜Œ#๎˜—%๎˜๎˜–๎˜‡๎˜Œ๎˜—& & '
๎˜Ÿ ๎˜Ž๎˜„๎˜…๎˜“๎˜Œ๎˜„๎˜ƒ๎˜‰๎˜Œ๎˜˜๎˜Š๎˜๎˜„๎˜Œ
( )๎˜‰๎˜‚๎˜Œ* ๎˜‰๎˜†๎˜ƒ+
( , ๎˜๎˜„-๎˜Œ๎˜„. ๎˜†๎˜๎˜Œ๎˜’๎˜…๎˜–๎˜…๎˜„
( , ๎˜๎˜„-๎˜Œ๎˜„/ ๎˜๎˜ˆ๎˜Œ๎˜’ ๎˜…๎˜–๎˜…๎˜„
( , ๎˜๎˜„-๎˜Œ๎˜„๎˜‹๎˜‰0๎˜Œ
๎˜Ÿ 1 ๎˜Œ!๎˜ƒ๎˜Š๎˜˜๎˜ƒ๎˜„๎˜‰๎˜‚๎˜๎˜Š๎˜ˆ๎˜…๎˜‚๎˜ƒ๎˜„๎˜…๎˜–
( 2๎˜™๎˜
( 2๎˜‰๎˜ƒ
( 2๎˜๎˜…๎˜‚๎˜ƒ๎˜‚๎˜๎˜‘๎˜Œ
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Plotting, Arguments List and Number Representation | COMP 116 and more Study notes Computer Science in PDF only on Docsity!

Plotting Advance control

Plotting Advance control

varargin / varargout

Figure Handles and Properties

  • -=  = +  =  E  # , F 1 )F G     = = =  < F " , F 1 )F G     %   " >+   H ?< I    +   +      + <

1 +        +   -

Figure Properties (set / get)

   : "$  :  "J  <<<'

  +       +    %   +  H  '     "      %   +   = + +      +   : %    +  H <

. ! 4 1      = = +  57 +^  "          +        +  H :   0  "      +  0 <   0   % 4 >   = + + +? BB 0 3    :   0 :' BB  :  : >  0  '5 0 '5 0 7 '5? '

Changing Axis Properties

BB! 3 ; 4  < 4  9

BB " 3  ! '

BB !  " ' 9

BB     :C 1 -: ; 4  5 4  '

BB    :C 1 -) E  K :; E  : 5 E  : E 

: 5 E  : E L '

Representing Information on Computers

 M =   +      @

 G   G " 

( $  4  N$   % 

( F 4   O  

( P $ Q R. 4   

Data-types

  3 ...         < (       %    = = :  

  O 3    O      (. ! 4   " %       

 * =    E+#     = +  = "    +<  '

 R ;"   "   4 (   (    +<  '

Conversion between data-types y = uint8(x) %y has type uint If (x<0) then y = 0 If (x > 255) then y = 255 otherwise round-off x to get y Examples uint8(1.25) uint8(12.5) uint8(125) uint8(1250) uint8(-1250) %Convert y back to double z = double(y)

Sorting

M        +    <

% + E    # ;B  +<

1 + , F 1 )F G  = + +    +   +

 7 6 W  7 W W

EH+#  EH#  E+"#  E+# <<

 4D  %   +   

7 4  V    Q H  = <<   F  <