A list,
The method of calculating the velocity and acceleration of a two-dimensional curve motion of a particle is illustrated by the uniform circular motion of the particle. In fact, the motion equation of a particle is an orbital equation with time as its parameter, and it can also explain the direction of motion of the particle. It is illustrated by the picture that when a particle moves in a uniform circular motion, the components of velocity and acceleration change periodically, the magnitude of velocity and acceleration is constant, and the direction will jump.
Ii. Source code
% uniform circular motion of particle clear % clear variable r=0.3; X = - % radius r:0.01:r; % coordinates x = ysqrt(r^2-x.^2); Plot (x,[y;-y],'LineWidth'.2Grid on % axis equal %'track'.'FontSize'.16) % title xlabel('\itx\rm/m'.'FontSize'.16% x label ylabel('\ity\rm/m'.'FontSize'.16) % y label text(0.0.'Press Enter to display particle motion direction! '.'FontSize'.16)% Displays a message pause % pause tm=6; % particle movement time t=0:0.001:tm; % time vector w is equal to2; X = r * % coefficientsin(w*t); % x coordinate y = r *cos(w*t); %y coordinates hold on % comet(x,y) %2.1.1Plot (t,x,The '-',t,y,'-',t,sqrt(x.^2+y.^2),'LineWidth'.2Grid on % grid on %'position vector'.'FontSize'.16) % title xlabel('\itt\rm/s'.'FontSize'.16% x label legend('Horizontal coordinates'.Vertical coordinate.'Position vector size'.4Alpha =) % illustrationatan2(y,x)*180/pi; The Angle between % and positive x %alpha=atan(y./x)*180/pi; % subplot(x)2.1.2Plot (t,alpha,'LineWidth'.2Grid on % grid on %'Direction of position vector'.'FontSize'.16) % title xlabel('\itt\rm/s'.'FontSize'.16% x label ylabel('\it\alpha\rm/(\circ)'.'FontSize'.16% ordinate label vx= W *r*cos(w*t); Vy = % x speed - w * r *sin(w*t); %y speed figure % Create graph window subplot(2.2.1Plot (t,vx,'LineWidth'.2Grid on % grid on %'Velocity \ ITx \rm component'.'FontSize'.16Xlabel () % title'\itt\rm/s'.'FontSize'.16% x label ylabel('\itv_x\rm/m\cdots^-^1'.'FontSize'.16Subplot ()2.2.2Plot (t,vy,'LineWidth'.2Grid on % y speed curveCopy the code
3. Operation results
Fourth, note
Version: 2014a complete code or write plus 1564658423