.


:




:

































 

 

 

 


.




, . semilogx ( ), semilogy ( ) loglog ( ). plot: , .

.

(. 2.9.6):

>> x=0.1:0.001:1000;

>> y=3*cos(log(2*x));

>> semilogx(x,y)

. 2.9.6. .

 

.

polar, (. 2.9.7):

>> phi=0:0.001:2*pi;

>> r=sin(5*phi);

>> polar(phi,r);

 

, . MATLAB , , .

. 2.9.7. .

. 2.10.1. .

.

, , (. 2.10.1)

>> x=0:0.1:2*pi;

>> y=cos(x);

>> plot(x, y, 'k-', x, y, 'ko')

, , 0.1, . plot , . k-, ( k), . , ko, ( k) ( o) .

plot(x1,y1,s1,x2,y2,s2,...)

y1(x1),y2(x2),... s1,s2,....

, s1,s2,... ( ), , , , ( 2.10.1). , . , , , , . , , , .

, MATLAB. . MATLAB .

, (. 2.10.2).

>> x=0:0.001:2*pi;

>> y=cos(x);

>> hplot=plot(x,y);

>> set(hplot,'LineWidth',8);

plot x,y. MATLAB line. , . .

hplot=plot(x,y) hplot line, .

2.10.1. .

( )
( ) -
:
--
- -.
( . red) r
( . yellow) y
( . green) g
( . blue) b
// ( . cyan) c
// ( . magenta) m
( . black) k
( . white) w
( ) .
( ) x
( ) +
( ) *
s
d
none
v
^
<
>
p
h

set .

'LineWidth' ( ) 7 ( 0.5). , , . 2.10.2.

(; ) get. , , . 2.10.1

>> width=get(hplot, 'LineWidth')

width =

. 2.10.2. ( 7 ).

width 'LineWidth' 7.

get, . , , hplot line :

>> get(hplot);

DisplayName: ''

Annotation: [1x1 hg.Annotation]

Color: [0 0 1]

LineStyle: '-'

LineWidth: 7

Marker: 'none'

MarkerSize: 6

MarkerEdgeColor: 'auto'

MarkerFaceColor: 'none'

XData: [1x6284 double]

YData: [1x6284 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: 173.0011

XDataMode: 'manual'

XDataSource: ''

YDataSource: ''

ZDataSource: ''

hplot . , 'LineWidth', 'Color' RGB- (, , ) [0 0 1], , 'MarkerSize' ( 6). , , , [].

 





:


: 2016-12-06; !; : 4078 |


:

:

- , - .
==> ...

1751 - | 1669 -


© 2015-2024 lektsii.org - -

: 0.018 .