function RunOsciliationsky3D
N0all= 1:1:10;
N=length(N0all);
omegaall= 1:1:10;
M=length(omegaall);
Pmax=zeros(1,N);
Pmean=zeros(1,N);
Pall=[Pmax(i),Pmean(j)];
x=length(Pall);
for i=1:N
for j =1:N [t,x]=ode45(@osciliation,[0 100],0.1,[],N0all(i),10,omegaall(j)); Pall(i,j)=x; endend[N0x,omegay]=meshgrid(N0all,omegaall);h=mesh(N0x,omegay,Pall);
1;
Note: x axis = Noall
y axis =omegaall z axis = Pall, which is a matrix containing the maximum and mean values of x.
Best Answer