Skip to content

Instantly share code, notes, and snippets.

@Sinitca-Aleksandr
Created April 12, 2016 06:44
Show Gist options
  • Save Sinitca-Aleksandr/13ab1f7911dd93995f5bcf9c0addb1f3 to your computer and use it in GitHub Desktop.
Save Sinitca-Aleksandr/13ab1f7911dd93995f5bcf9c0addb1f3 to your computer and use it in GitHub Desktop.
Быстрое построение фазового портрета simulink модели
hold on
for dx0=-2:1:2 % Диапазон начальных значений по скорости (первой производной)
for x0=-5:1:5 % Диапазон начальных значений по углу
sim('pendulum') % Имя simulink модели
plot(x,dx)
end
end
hold off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment