.


:




:

































 

 

 

 


MATLAB




figure.

gcf ;

gca ;

gco ;

: get set. get , set .

set

set ( , , ).

get ( , ).

 

.

HFig = figure

Position

get(gcf,'Position')

,

ans =

232 246 560 420

.

left = 232;

bottom = 258;

width = 560;

height = 260;

set(gcf,'Position', [left bottom width height], 'Color', 'w');

set(gcf,'Position', [left bottom width height], 'Color', 'w','MenuBar','none');

 

%

SCRsize =get(0, 'ScreenSize')

left = SCRsize(1)

bottom=SCRsize(2);

width=SCRsize(3);

%

height=SCRsize(4)-19;

set(gcf,'Position', [left bottom width height], 'Menu', 'none','Color', 'w')

,

figure(HFig)

.

.

clear all

HFig1 = figure;

HFig2 = figure;

left = 232;

bottom = 258;

width = 560;

height = 260;

set(HFig1,'Position', [left bottom width height], 'Color', 'w');

figure(HFig2)

%

SCRsize =get(0, 'ScreenSize')

left = SCRsize(1)

bottom=SCRsize(2);

width=SCRsize(3);

%

height=SCRsize(4)-19;

set(gcf,'Position', [left bottom width height], 'Menu', 'none','Color', 'w')

clf.

.

clear all

HFig = figure;

left = 232;

bottom = 258;

width = 560;

height = 260;

set(HFig,'Position', [left bottom width height], 'Color', 'w');

x = -2*pi:pi/24:2*pi;

f = cos(x);

g = sin(x);

gr1 = plot(x,f);

grid

hold on

gr2 = plot(x,g);

%

set(gca, 'Box', 'off')

%

set(gca, 'FontName','Times New Roman Cyr','FontSize',10)

%

set(gca,'YLim', [-1.5 1.5], 'XLim', [-2*pi 2*pi])

xlabel(' {\itx} ')

ylabel(' {\ity}')

title(' sin({\itx}) cos({\ity})', 'FontName','Courier')

,

hAxes1 = axes

set(hAxes1,..)

cla.

set(gr1,'Color', 'b', 'LineWidth', 2, 'LineStyle', '--');

set(gr2,'Color', 'r', 'LineWidth', 2, 'LineStyle', '-.');

 

:

 

X = [-7*pi/4 -3*pi/4 pi/4 5*pi/4]

Y = [sin(-7*pi/4) sin(-3*pi/4) sin(pi/4) sin(5*pi/4)]

 

gr7 = line([X(2) X(4)], [Y(2) Y(4)])

set(gr7, 'Color', 'm','LineWidth',1);

 

gr3 = line(X(1),Y(1));

set(gr3,'Marker', 'v', 'MarkerFaceColor','m', 'MarkerEdgeColor', 'm', 'Markersize', 8)

gr4 = line(X(2),Y(2));

set(gr4,'Marker', 'o', 'MarkerFaceColor','w', 'MarkerEdgeColor', 'k', 'Markersize', 8)

gr5 = line(X(3),Y(3));

set(gr5,'Marker', 's', 'MarkerFaceColor','k', 'MarkerEdgeColor', 'k', 'Markersize', 8)

gr6 = line(X(4),Y(4));

set(gr6,'Marker', '^', 'MarkerFaceColor','g', 'MarkerEdgeColor', 'g', 'Markersize', 8)

 

gr7 = line([X(2) X(4)], [Y(2) Y(4)])

set(gr7, 'Color', 'm','LineWidth',1);

 





:


: 2016-10-22; !; : 937 |


:

:

.
==> ...

1339 - | 1288 -


© 2015-2024 lektsii.org - -

: 0.013 .