?? parametric2d.m
字號:
% parametric2D.m
% A program to explore parameteric forms of lines in 2D
clear all;
close all;
x0 = [0 0]'; % initial position
x1 = [1 0]'; % initial velocity
x2 = [0 1]'; % initial acceleration
x3 = [0 -0.11]'; % initial rate of change of acceleration
%x3 = [-0.007 0]'; % uncomment the line
s = -3:0.5:10; % pretend s is a time parameter
% compute a set of points
p = repmat(x0,1,length(s)) + x1*s + x2*(s.^2) + x3*(s.^3);
% draw the points, and their connecting lines
figure;
axis equal;
plot( p(1,:), p(2,:), 'ko', p(1,:), p(2,:), 'k-' );
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -