program_1b.m

来自「《Dynamical Systems with Applications usi」· M 代码 · 共 17 行

M
17
字号
% Chapter 1 - Linear Discrete Dynamical Systems.
% Program 1b - The Leslie Matrix.
% Copyright Birkhauser 2004. Stephen Lynch.

% Define a 3x3 Leslie Matrix (Example 4).
L=[0 3 1; 0.3 0 0; 0 0.5 0]

% Set initial conditions.
X0=[1000;2000;3000]

% After 10 years the population distribution will be:
X10=L^10*X0

% Find the eigenvectors and eigenvalues of L (Example 5).
[v,d]=eig(L)

% End of Program 1b.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?