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

2 views (last 30 days)
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)

Accepted Answer

VBBV
VBBV on 25 Jan 2022
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 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!