フィルターのクリア

Phase portrait of the system in a rectangle

2 ビュー (過去 30 日間)
Stefani Stefanova
Stefani Stefanova 2020 年 12 月 26 日
コメント済み: Ameer Hamza 2020 年 12 月 27 日
The two above are a system
How to display the phase portrait of the system in a rectangle Including the special point /idk if special is the correct work in english/ and how to display a tangent vector to each of the displayed not special phase curves?
  1 件のコメント
Stefani Stefanova
Stefani Stefanova 2020 年 12 月 26 日
function PhasePortrait
clc;
%data:
[x,y] = meshgrid(linspace(-1,2,20));
dx = 2*x-y-5;
dy = 3*x-2*y-9;
quiver(x, y, dx, dy)
axis([-1 1 -1 1])
% hold on
quiver(x, y, dx, dy);
title('Phase portrait')
axis tight
%plot(x(1), y(-3), "Marker","*", "Color", 'b');
end
this is what ive written by when i try to mark my specific point (1, -3) it doesnt work

サインインしてコメントする。

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 12 月 26 日
You can use quiver(). For example,
[x,y] = meshgrid(linspace(-1,1,20));
dx = 2*x-y-5;
dy = 3*x-2*y-9;
quiver(x, y, dx, dy)
axis([-1 1 -1 1])
  10 件のコメント
Stefani Stefanova
Stefani Stefanova 2020 年 12 月 26 日
THANK YOU SO SO SO MUCH!!!!! That really helped me!
Ameer Hamza
Ameer Hamza 2020 年 12 月 27 日
I am glad to be of help!!!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by