I have written the code for three differential equations for plotting the graph . I am not able to get the graph .

1 回表示 (過去 30 日間)
clc;
clear all;
close all;
F = @(Z,X) (1.07*Z*Z-Z*Z*Z-0.17*Z-(0.36*Z*X)-(0.0001*sqrt(Z*Y))/(1+0.2*sqrt(Z)));
A = @(X,Y) (X)*(0.06*Z-4.06*X*Y-0.09)
B = @(Z,Y) (0.000089*sqrt(Z*Y))/(1+0.2*sqrt(Z))-0.232*X*Y-Y
[Z,X,Y] = ode45(F,[0 10],1);
plot(Z,X,Y)

採用された回答

VBBV
VBBV 2022 年 1 月 25 日
clc;
clear all;
close all;
F = @(Z,X,Y) (1.07*Z*Z-Z*Z*Z-0.17*Z-(0.36*Z*X)-(0.0001*sqrt(Z*Y))/(1+0.2*sqrt(Z)))
A = @(X,Y,Z) (X)*(0.06*Z-4.06*X*Y-0.09)
B = @(Z,Y,X) (0.000089*sqrt(Z*Y))/(1+0.2*sqrt(Z))-0.232*X*Y-Y
[Z,X,Y] = ode45(@(X,Y,Z) F(1,10,110),[0 10],1);
plot(Z)
Check this
  3 件のコメント
Torsten
Torsten 2022 年 1 月 25 日
Please write down your differential equations in a mathematical notation.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by