. . , , . : , .
%
a=[1,2,0];b=[2,1,0];
%
c=cross(a,b)
% .
% c =(0,0,-3)
% ,
grid on, hold on, axis square
line([-5 0 0;5 0 0], [0 -5 0;0 5 0],[0 0 -5;0 0 5],'Color','black')
% , -
line([0 1],[0,2],'LineWidth',4)
% ,
plot3(1,2,0,'>','LineWidth',4)
%
line([0 2],[0,1],'Color','green','LineWidth',4).
plot3(2,1,0,'>g','LineWidth',4)
% c =(0,0,-3)
line([0 0],[0,0],[0 -3],'Color','red','LineWidth',4)
plot3(0,0,-3,'>r','LineWidth',4) %
plot3(5,0,0,'<k','LineWidth',2) % 0X
plot3(0,5,0,'>k','LineWidth',2) % 0Y
plot3(0,0,5,'^k','LineWidth',2) % 0Z
text(5,-0.5,0.8,'X') % 0X
text(-0.5,5,0.8,'Y') % 0X
text(-0.5,-1,5,'Z') % 0Z
Figure 1, Rotate3D (c. ), .
. 1
: , . .
, .
- .
:
. 2.
%
%
% (x1, y1), (x2,y2)
% -,
% x1
x1=0.1:0.1:1.9;
% y1 x1 y=x/2,
y1=x1/2;
% (x2,y2) (x1,y1) a
% (x2,y2)=(x1,y1)+a=(x1+1,y1+2)
% x1+1
% x1
x2=x1+1; y2=y1+2;
line([x1; x2],[y1; y2],'LineWidth',4, 'Color',[0.8 0.1 0.7])
. 3.
:
. 4
, fill(). .
>> fill([0 2 3 1], [0 1 3 2], 'm')
. 5
4. . *** .
. ( ) . .
|
|
5. . . . . , . , .
, ( ) , ( , ..).
3. .
1- h 1, h 2, h 3:
.
, : , h 1, h 2, h 3 2- 3- ,
, ?
3- ?
3- , (!)?
3- , ( ) (!)?
3- , (!)?
3- , (!)?
3- , 2 (!)?
: ?
1. .
2. .
3. .