标签:win toc plot 对比 turn 虚线 运算 mesh ict
我们使用数值法来完成这个操作
举例:
% InteractionPoint.m
x = linspace( 0, 2*pi, 1000 );
y1 = 0.2*exp( -0.5*x ).*cos( 4*pi*x );
y2 = 2*exp( -0.5*x ).*cos( pi*x );
% return Serial Number of x when y1 is approximate to y2.
% Error: 1e-2. k--1x17.
k = find( abs( y1-y2 ) < 1e-2 );
x1 = x(k);
y3 = 0.2*exp( -0.5*x1 ).*cos( 4*pi*x1 );
% bp: blue-pentangle
% k: -- black dashed-line
plot( x, y1, x, y2, ‘k:‘, x1, y3, ‘bp‘ );
结果图片InteractionPoint.jpg
注释:
.
:
--虚线举例:
% TangentPlane.m
x = -8:0.05:8;
y = x;
[X,Y] = meshgrid(x,y);
Z = X.^2-Y.^2;
% return: ‘i‘, a matrix of 44960x1. Equally stands for a region outside
% of the rectangle formed by x[-6,6] & y[-6,6].
i = find( abs(X)>6 | abs(Y)>6 );
% Make the value of Z among the domain ‘i‘ equal 0. Equally, the XY plane
Z(i) = zeros( size(i) );
% Draw 3D figure.
surf(X,Y,Z),
% Do procession to the figure of Z.
shading interp;
colormap(copper)
light(‘position‘,[0,-15,1]);
lighting phong
material([0.8,0.8,0.5,10,0.5])
结果图片 TangentPlane.jpg
注释
标签:win toc plot 对比 turn 虚线 运算 mesh ict
原文地址:https://www.cnblogs.com/rongyupan/p/12662532.html