image thumbnail
from Multiple simulations in 2-D by Zhi Han
Simulating a 2-D system for multiple initial points

setup.m
% Setup the workspace for the simulation 
A = [-0.4 1; -1 -0.4];
b = [1;1];
NumPoints = 30;
alpha = linspace(-pi,pi,NumPoints);
for i=1: length(alpha)
    x0{i} = [cos(alpha(i)), 2*sin(alpha(i))];
end

Contact us at files@mathworks.com