⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 parametric2d.m

📁 parametric 2d using matlab, parametric 2d using matlab,
💻 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 + -